• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Kasten nebeneinander und untereinander

Klappt auch nicht :( Sieht so aus:
<margin:0 auto;>
<center><div style="float:left; overflow:left; width:240px; height:200px; padding:0px; border:2px #27408B solid; background-image:url(Link); background-repeat:repeat; background-attachment:fixed; color: #ffffff;"><br><font color="Schriftfarbe"> Text </font></div></center>

<center><div style="float:left; overflow:left; width:240px; height:200px; padding:0px; border:2px #27408B solid; background-image:url(Link); background-repeat:repeat; background-attachment:fixed; color: #ffffff;"><br><font color="Schriftfarbe"> Text </font></div></center>
<center><div style="float:left; overflow:left; width:240px; height:200px; padding:0px; border:2px #27408B solid; background-image:url(Link); background-repeat:repeat; background-attachment:fixed; color: #ffffff;"><br><font color="Schriftfarbe"> Text </font></div></center>
<center><div style="clear: both;"><!--Clear-Div--></div><br><div style="float:left; overflow:auto; width:240px; height:200px; padding:0px; border:2px #27408B solid; background-image:url(Link); background-repeat:repeat; background-attachment:fixed; color: #ffffff;"><br><font color="Schriftfarbe"> Text </font></div></center>
<center><div style="float:left; overflow:left; width:240px; height:200px; padding:0px; border:2px #27408B solid; background-image:url(Link); background-repeat:repeat; background-attachment:fixed; color: #ffffff;"><br><font color="Schriftfarbe"> Text </font></div></center>
<center><div style="float:left; overflow:left; width:240px; height:200px; padding:0px; border:2px #27408B solid; background-image:url(Link); background-repeat:repeat; background-attachment:fixed; color: #ffffff;"><br><font color="Schriftfarbe"> Text </font></div></center>
</margin:>
 
Hallo.

margin: 0 auto; ist CSS und kein HTML.

Also ab damit in dein CSS und per class oder id dem div zuweisen.
Und entferne bitte diese veralteten <center> tags.

Gruss
Elroy
 
Solange er das in den style macht, passt doch alles.

Aber ich rate auch zu einer externen CSS-Datei, da dies viel übersichtlicher ist.




HTML:
<margin:0 auto;>
</margin:>

WTF?!

Eher: <div style="margin: 0 auto;">
 
Zurück
Oben