Mike: float will nicht clearen

Beitrag lesen

Hi,

im folgenden soll ein Bild um einen Text fliessen, macht es auch. Aber im FF versetzt sich das ganze immer mehr, obwohl ich clear nutze.

img
   img
      img
         img

Aber auch wenn es an der Vererbung läge, dürfte das doch gar nicht sein, weil vererbt wird doch nur innerhalb des Elternelements, oder?

  
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">  
<html>  
<head>  
<title>test float</title>  
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">  
<meta http-equiv="expires" content="0" />  
<meta http-equiv="pragma" content="no-cache" />  
<style type="text/css">  
*{font-family:arial;}  
  
body,html{  
margin:0;padding:0;  
font-size:12px;  
margin:0;  
padding:0;  
background-color:#ffffff;  
}  
  
.divres{}  
.divres h5{}  
.divres p{line-height:160%;font-size:12px;font-weight:bold;margin:0;}  
.divres p img{border:1px solid #000000;margin-right:4px;float:left;}  
.divres span{clear:left;}  
  
</style>  
  
</head>  
<body>  
  
  
  
<div class="divres">  
<p>  
<img src="http://src.selfhtml.org/logo.gif" />  
<h5>Artikel</h5>  
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s,...  
</p>  
<span>Aktualisiert:Wed, 28.01.2009 | size:31.09kb</span> |Format:text/html</span>  
<p>http://forum.de.selfhtml.org/</p>  
</div>  
  
<div class="divres">  
<p>  
<img src="http://src.selfhtml.org/logo.gif" />  
<h5>Artikel</h5>  
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s,...  
</p>  
<span>Aktualisiert:Mon, 19.01.2009 | size:19.62kb</span> |Format:text/html</span>  
<p>http://forum.de.selfhtml.org/</p>  
</div>  
  
<div class="divres">  
<p>  
<img src="http://src.selfhtml.org/logo.gif" />  
<h5>Artikel</h5>  
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industrys standard dummy text ever since the 1500s,...  
</p>  
<span>Aktualisiert:Sun, 18.01.2009 | size:19.81kb</span> |Format:text/html</span>  
<p>http://forum.de.selfhtml.org/</p>  
</div>  
  
  
</body>  
</html>  
  

Mike