|
|||
text-align:center; will nicht funktionieren.
HTML-Code:
<style type="text/css"> body { font-family: Tahoma; font-size: 12px; background-color: #222222; text-align: center; padding-top: 100px; margin: 0px; } table.eccms_box-login { margin: 0px; width: 500px; font-size:12px; background-color: #FFFFFF; width: 500px; border: 0px; padding: 0px; margin-bottom: 12px; } table.eccms_box-werbung { margin: 0px; width: 500px; background-color: #FFFFFF; font-size:12px; width: 500px; border: 0px; padding: 0px; margin-bottom: 12px; } td.eccms_box-login-td { color: #909090; border: #222222; padding: 0px 0px 0px 0px; } fieldset { border: 1px solid #999; padding: 0px 0px 0px 0px; color:#999; } </style> </head> <body> <table class="eccms_box-login"> <tr> <td class="eccms_box-login-td"><fieldset><legend>Login</legend> <div style="padding:5px; color:#222222; padding-top:10px; padding-bottom:5px;"><?php echo $output; ?></div> </fieldset> </td> </tr> </table> <table class="eccms_box-werbung"> <tr> <td class="eccms_box-werbung-td"><fieldset><legend>Werbung</legend> <div style="padding:5px; color:#222222; padding-top:10px; padding-bottom:5px;">Hier kommt die Werbung hin.</div> </fieldset> </td> </tr> </table> </body> </html> obwohl ich bei body text-align:center angegeben hab, wird der inhalt der seite links bündigt angeordnet. bitte um hilfe danke schon mal im voraus |
Sponsored Links |
|
||||
Mit text-align zentriert man Inline-Elemente.
Tabellen sind keine Inline-Elemente. Gib deiner "tollen" Tabelle ein margin: 0 auto; und fertig ... so zentriert man nämlich Block-Elemente
__________________
“My software never has bugs. It just develops random features ...” » DevShack - die Website des freien Webentwicklers Boris Bojic |
Sponsored Links |
Stichwörter |
center, text-align |
Themen-Optionen | |
Ansicht | |
|
|
Ähnliche Themen | ||||
Thema | Autor | Forum | Antworten | Letzter Beitrag |
Wrapper wächst nicht mit, keine Floats | maclady | CSS | 11 | 10.02.2010 18:30 |
Wachsende Container | Andy CD | CSS | 13 | 10.02.2010 14:08 |
DIV bis GANZ unten | burnZ | CSS | 5 | 27.07.2008 14:14 |
Helft mir. Ich habe voll die Leseschwäche | nick | CSS | 12 | 15.01.2008 21:52 |
Problem mit div und Höhe | deep4 | CSS | 2 | 13.11.2007 21:03 |