martin.richter: DIV nebeneinander funktionier trotz float:left nicht

Beitrag lesen

Hallo,

hier soll in einem mittigen DIV einmal der Content und nebenan die Navigationsleiste gesetzt werden.

Trotz float:left wird die Navi (gelb) falsch plaziert obwohl rechts davon ja noch genug Platz wäre...

Wo liegt da der Fehler?

Danke,
Martin

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">  
<html>  
<body>  
  
  
<div style="position:relative;margin:0px auto;width:750px;background:green">  
  
 <div style="position:relative;width:750px;float:left">  
  
   <div style="position:relative;width:600px;height:25px;background:#9f0000">Titel</div>  
   <div style="position:relative;width:600px;height:150px">Inhalt</div>  
  
 </div>  
  
 <div style="position:relative;width:100px;height:100px;background:yellow">Navi</div>  
  
  
</div>  
  
</body>  
</html>