Div inde i div inde i div, men hvorfor bliver højden forkert
Hvis jeg fjerner FLOAT: LEFT; så virker det.Men nu hvor float: left; sættes, så bliver højden ikke korrekt! (eller den tilpasser sig ikke højden af de 3 div's (div3)
Nogle som har en løsning?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/strict.dtd">
<html>
<head>
<title>CSS Test</title>
<style type="text/css">
#div1 { position: relative; width: 500px; background-color: blue; padding: 5px; }
#div2 { position: relative; background-color: red; padding: 5px; }
.div3 { position: relative; background-color: yellow; padding: 5px; float: left; }
</style>
</head>
<body>
<div id="div1">
<div id="div2">
<div class="div3">Hej Mor</div><div class="div3">Hej Far</div><div class="div3">Hej Alle andre</div>
</div>
</div>
</body>
</html>
