Ahoi Efchen,
Ein Block-Element darf nicht in einem Inline-Element stehen.
ja ne is klar.
hier jetzt nochmal der code:
html:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <-- doctyp
<html>
<head>
<title>Newsübersicht</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" type="text/css" href="mein.css">
</head>
<body class="news">
<div class="news"><img src="images/news.gif"> <-- gif mit news als schriftzug
<--! eine von vielen einzelnen news -->
<div class="einzelnews"">
<div class="links">
<h1 class="news"><a class="news" href='detail.php?news_id=6' target="_blank">Ueberschrift</a></h1>
<div class="datum">26.07.2005
</div>
<p class="nachricht">
Unsinniger fülltext für den test <a class="news" href='detail.php?news_id=6' target="_blank"> mehr</a></p>
</div>
<div class="images">
<a href="ablage/73376447.jpg" target="_blank">
<img class="news" src="ablage/73376447.jpg" alt="alt_text" title="home.jpg" width="39" ></a>
<br>
</div>
<hr></div>
</div>
</div>
</body>
</html>
mein.css:
body.news{margin: 0; padding-left: 2em; height: 100%; width: 100em;}
div.news {width: 75em;}
div.einzelnews {width: 100%; clear: left;}
div.links{width: 75%; float:left;}
div.images{width: 25%; float:left;}
h1.news{width: 75%; float:left; font-size: 9pt; height: 3em; text-align: left;}
div.datum{width: 25%; float:left; text-align: right;}
p.nachricht{width: 100%; float:left; text-align: left;}
div.einzelnews hr {width: 100%; clear:left;}
am quelltext nix geändert, so rauskopiert. nur andere news weggelassen. wäre das so valide? ist das noch verbesserungswürdig? im
FF und IE siehts bei mir jetzt wie gewünscht aus.
MfG