PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS positionieren klappt nicht
Beitrag
<blockquote data-quote="maxsteel" data-source="post: 1507922" data-attributes="member: 250683"><p>Hi Leute ich mühe mich jetz schon den ganzen Nachmittag mit dem Problem ab das ich es nicht schaffe in einen divlayer oben unten links und rechts etwas zu positionieren.</p><p>Hier erstmal der Bady des HTML Codes:</p><p>[HTML]<body></p><p><div id="bereich"></p><p></p><p></p><p> <div id="navigation"></p><p> <div id="button1"></div></p><p> <div id="button2"></div></p><p> <div id="button3"></div></p><p> <div id="button4"></div></p><p> <div id="button5"></div></p><p> </div></p><p> </p><p> <div id="galerie"></p><p> <div id="top"></p><p> <div id="left"></p><p> <div id="right"></p><p> <div id="bottom"></p><p> hallo</p><p> </div></p><p> </div></p><p> </div></p><p> </div> </p><p> </div></p><p></p><p></div></p><p></p><p></body>[/HTML]</p><p></p><p>und hier der CSS code:</p><p>[CODE]@charset "utf-8";</p><p>/* CSS Document */</p><p>body{</p><p> background:url(../images/bg.jpg);</p><p>}</p><p></p><p>#bereich{</p><p> width:800px;</p><p> height:600px;</p><p> margin:auto;</p><p>}</p><p></p><p>#navigation{</p><p> margin-top:20px;</p><p> margin-left:200px;</p><p> float:left;</p><p>}</p><p>#button1{</p><p> width:180px;</p><p> height:52px;</p><p> margin-top:3px;</p><p> background:url(../images/button_home.png);</p><p>}</p><p></p><p>#button2{</p><p> width:180px;</p><p> height:52px;</p><p> margin-top:3px;</p><p> background:url(../images/button_home.png);</p><p>}</p><p></p><p>#button3{</p><p> width:180px;</p><p> height:52px;</p><p> margin-top:3px;</p><p> background:url(../images/button_home.png);</p><p>}</p><p></p><p>#button4{</p><p> width:180px;</p><p> height:52px;</p><p> margin-top:3px;</p><p> background:url(../images/button_home.png);</p><p>}</p><p></p><p>#button5{</p><p> width:180px;</p><p> height:52px;</p><p> margin-top:3px;</p><p> background:url(../images/button_home.png);</p><p>}</p><p></p><p>#galerie{</p><p> width:206px;</p><p> height:300px;</p><p> margin-top:20px;</p><p> margin-left:20px;</p><p> float:right;</p><p>}</p><p></p><p>#top {</p><p> background:url(../images/galerie_oben.gif) top no-repeat;</p><p> width:206px;</p><p> height:6px;</p><p>}</p><p></p><p>#left {</p><p> background:url(../images/galerie_links.gif) left repeat-y;</p><p> width:2px;</p><p> height:1px;</p><p>}</p><p></p><p>#right {</p><p> background:url(../images/galerie_rechts.gif) right repeat-y;</p><p> width:2px;</p><p> height:1px;</p><p>}</p><p></p><p>#bottom {</p><p> background:url(../images/galerie_unten.gif) bottom no-repeat;</p><p> width:206px;</p><p> height:6px;</p><p>}</p><p></p><p>[/CODE]</p><p>Die Navigation funktioniert sehr gut, nur eben die galerie nicht. es soll eigtl so aussehen das ich ein bild bei der galerie habe für oben (top) für unten (bottom) und jeweils eins für links und rechts welches 1px hoch sind und repeatet werden auf der y achse. nun klappt das aber nicht wie ihr seht <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Für mich sieht dieder teil relativ sinnlos aus:[HTML]<div id="galerie"></p><p> <div id="top"></p><p> <div id="left"></p><p> <div id="right"></p><p> <div id="bottom"></p><p> hallo</p><p> </div></p><p> </div></p><p> </div></p><p> </div> </p><p> </div>[/HTML]</p><p>Da es wahlölos gewählt ist. Die anordnung, erst top dann left. Danke schonmal für die antworten.</p><p>mfg max</p></blockquote><p></p>
[QUOTE="maxsteel, post: 1507922, member: 250683"] Hi Leute ich mühe mich jetz schon den ganzen Nachmittag mit dem Problem ab das ich es nicht schaffe in einen divlayer oben unten links und rechts etwas zu positionieren. Hier erstmal der Bady des HTML Codes: [HTML]<body> <div id="bereich"> <div id="navigation"> <div id="button1"></div> <div id="button2"></div> <div id="button3"></div> <div id="button4"></div> <div id="button5"></div> </div> <div id="galerie"> <div id="top"> <div id="left"> <div id="right"> <div id="bottom"> hallo </div> </div> </div> </div> </div> </div> </body>[/HTML] und hier der CSS code: [CODE]@charset "utf-8"; /* CSS Document */ body{ background:url(../images/bg.jpg); } #bereich{ width:800px; height:600px; margin:auto; } #navigation{ margin-top:20px; margin-left:200px; float:left; } #button1{ width:180px; height:52px; margin-top:3px; background:url(../images/button_home.png); } #button2{ width:180px; height:52px; margin-top:3px; background:url(../images/button_home.png); } #button3{ width:180px; height:52px; margin-top:3px; background:url(../images/button_home.png); } #button4{ width:180px; height:52px; margin-top:3px; background:url(../images/button_home.png); } #button5{ width:180px; height:52px; margin-top:3px; background:url(../images/button_home.png); } #galerie{ width:206px; height:300px; margin-top:20px; margin-left:20px; float:right; } #top { background:url(../images/galerie_oben.gif) top no-repeat; width:206px; height:6px; } #left { background:url(../images/galerie_links.gif) left repeat-y; width:2px; height:1px; } #right { background:url(../images/galerie_rechts.gif) right repeat-y; width:2px; height:1px; } #bottom { background:url(../images/galerie_unten.gif) bottom no-repeat; width:206px; height:6px; } [/CODE] Die Navigation funktioniert sehr gut, nur eben die galerie nicht. es soll eigtl so aussehen das ich ein bild bei der galerie habe für oben (top) für unten (bottom) und jeweils eins für links und rechts welches 1px hoch sind und repeatet werden auf der y achse. nun klappt das aber nicht wie ihr seht :) Für mich sieht dieder teil relativ sinnlos aus:[HTML]<div id="galerie"> <div id="top"> <div id="left"> <div id="right"> <div id="bottom"> hallo </div> </div> </div> </div> </div>[/HTML] Da es wahlölos gewählt ist. Die anordnung, erst top dann left. Danke schonmal für die antworten. mfg max [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ★ = 12, ◇ = 4 und die Hälfte von ★ zu ◇ addiert wird, was ist das Ergebnis?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
CSS positionieren klappt nicht
Oben