Liebes Forum,
ich finde nichts mehr in meinem CSS-Buch … Die Seite läuft in Safari, Firefox und dem IE5.2 auf Mac OS 10.4 und in Netscape 7 auf WIN XP nur im IE6 geht es nicht. (Zur verständlichkeit habe ich die boxen eingefärbt)
1_Dort scheint sich die bild(box) um 1 oder 2px nach unten zu schieben, wenn das gleich große Bild geladen wird. Ohne Bild ist die größe der Box korrekt. Wie kriege ich den Streifen weg? (Bild: Logo_inkl.jpg ist 100px hoch und 450px breit)
2_Ich habe eine 8px x 8px großes Quadrat vor dem Menü (#kaestchen). Nur im IE scheint es 8 x 16px zu sein? Wie bekomme ich ein Quadrat hin?
3_Ist sonst etwas total bescheuert in meinem Quelltext?
Vielen Dank, wenn sich jemand die Zeit nimmt, mal drüber zu gucken!
Matthias
Code <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> <title>Name</title> <style type="text/css"> /* <![CDATA[ */ body { background-color: white; color: black; text-align: center; } #container { width: 900px; height: 600px; background-color: #76CEF3; text-align: left; position: relative; margin: 0 auto; margin-top: 50px; } #logo { background-color: black; width: 500px; height: 100px; } #navigation { background-color: yellow; width: 100px; height: 470px; position: absolute; top: 130px; left: 0px; font: 12px Helvetica, Verdana, sans serif; line-height: 18px; font-weight: normal; text-align: right; } #kaestchen { background-color: black; width: 8px; height: 8px; position: absolute; top: 135px; left: 104px; } #inhalt { background-color: brown; width: 350px; height: 445px; position: absolute; top: 130px; left: 125px; padding-right: 25px; overflow: auto; } h1, h2 { font: 12px Helvetica, Verdana, sans serif; line-height: 18px; font-weight: bold; margin-bottom: 0px; margin-top: 0px; } p { font: 12px Helvetica, Verdana, sans serif; line-height: 18px; font-weight: light; margin-bottom: 0px; margin-top: 0px; } #bild { background-color: green; width: 400px; height: 600px; position: absolute; top: 0px; right: 0px; } a:link { color: black; text-decoration: none; } a:visited { color: black; text-decoration: none; } a:hover { font-weight: bold; } .aktuell { font-weight: bold; } /* ]]> */ </style> </head> <body> <div id="container"> <div id="logo"><img src="Logo_inkl.jpg"</div> <div id="navigation"> <a href="Name.html" class="aktuell">Über uns</a><br> <br> <a href="#">Zwei</a><br> <br> <a href="#">Drei</a><br> <br> <a href="#">Vier</a><br> <br> <a href="#">Fünf</a><br> <br> <a href="#">Sechs</a><br> <br> <a href="#">Impressum</a> </div> <div id="kaestchen"></div> <div id="inhalt"> <p>texttexttexttexttexttexttexttexttexttexttexttext<br> <br> <h1>Überschrift</h1> <p> • texttexttexttexttexttext<br> texttexttexttexttexttext<br> • texttexttexttexttexttexttexttexttext<br> texttexttexttexttexttext<br> • texttexttexttexttexttexttexttexttext<br> • texttexttexttexttexttexttexttexttext<br> </p> <br> <h1>Überschrift</h1> <p> texttexttexttexttexttexttexttexttext<br> • texttexttexttexttexttexttexttexttext<br> • texttexttext<br> texttexttexttexttexttext<br> </p> </div> <div id="bild"><img src="Bild_Ueber uns4.jpg"</div> </div> </body> </html>