Hi,
ich bastle gerade an nem Design und wollte anstatt Tabellen mal CSS verwenden. Dazu benutze ich folgenden Code:
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>
Christoph Huppert - Lokaljournalismus
</title>
<style type="text/css">
body {margin: 0px; padding: 0px;}
#frame-titel {position: absolute; top: 0px; left: 0px; background-color: #FF0000; height: 125px; width: 600px;}
#frame-titel-spacer {margin-left: 600px; margin-right: 0px; margin-top: 0px; background-color: #FFFF00; height: 125px;}
#frame-menu-h {position: absolute; top: 125px; left: 0px; width: 800px; height: 22px; background-color: #33CCFF;}
</style>
</head>
<body>
<span id="frame-titel">
Titelframe
</span>
<span id="frame-titel-spacer">
Spacer
</span>
<span id="frame-menu-h">
Menü
</span>
</body>
</html>
Alles anzeigen
Der frame-titel-spacer sollte eigentlich flexibel sein, da ich nur die margin werte angegeben habe. Wenn man sich den Code allerings mal im Webbrowser anguckt wird man merken das dass Feld nur so groß ist wie der Text kann mir jemand helfen?