Axel Richter: <div>-Problem

Beitrag lesen

Hallo Palme,

funktioniert auch korrekt im IE6, Mozilla 1.1 und im Opera:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML>
<HEAD><TITLE>Neu</TITLE></HEAD>
<BODY>

<div id="hauptbox" style="position:absolute; width:100%; height:100%; margin:10px; border:1px solid #000000">

<div id="xy2"     style="position:absolute; left:5px; top:5px; width:40%; height:15%; border:1px solid #000000"><b>2</b></div>
<div id="xy3"     style="position:absolute; right:5px; top:5px; width:58%; height:15%; border:1px solid #000000"><b>3</b></div>
<div id="xy4"     style="position:absolute; left:5px; top:17%; width:30%; height:55%; border:1px solid #000000"><b>4</b></div>
<div id="xy5"     style="position:absolute; right:5px; top:17%; width:68%; height:70%; border:1px solid #000000"><b>5</b></div>

Der Fluch der absoluten Positionierung ;-) Hast Du mal probiert, was passiert, wenn Du in dieses DIV (id="xy5") viel Inhalt reinschreibst? Es soll ja schließlich das Inhalts-Div werden ;-))

<div id="xy6"     style="position:absolute; right:5px; top:90%; width:90%; height:8%; border:1px solid #000000"><b>6</b></div>

</div>

</BODY>
</HTML>

Alllerdings ein Problem: bei der oben gezeigten Doctype - Angabe verschiebt der IE alles zu einem Wirrwarr!

und gleich noch eine neue Frage an Axel Richter:
Warum macht er das???

Welcher IE? Meiner, MSIE5.5 unter WinNT4.0 Workstation, nicht!

Grüße

Axel