Thomas J.S.: Ein paar HTML Fragen --Nachtrag

Beitrag lesen

Hallo Pierre!

Auch wenn es nur eine einseitige Lösung ist, korrektheithalber sollte ich es aufschreiben.

<body style="text-align:center;">
<div style="margin-top:50%; margin-bottom:50%; width:200px; height:200px; text-align:left;">
text text text text<br>
text text text text text
</div>
</body>
Geht aber leider nur mit IE.

Eine Lösung für beide Browser wäre z.B.

<body style="text-align:center; padding-top:50%; padding-bottom:50%;">
<div style="width:200px; height:200px; border:thin solid red;">
<div style="text-align:left; border: thin solid blue;">
text text text text<br>
text text text text text<br>
</div>
</div>
</body>

(Wobei "height" von NS ignoriert wird.)

Grüße
Thomas