Hallo Forum!
Jaja, der gute alte NN4 - diesmal auf dem Mac - möchte mein supertolles Menü nur anzeigen, wenn er die vertikalen Abstände weiter auseinanderziehen darf. Genauer: Er fragt mich nicht einmal!
Ich verwende folgende Datei
<HTML>
<HEAD>
<TITLE>HTML-Navigation</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<style type="text/css">
body {background:#CCCCCC url(../gfx/menubkgr.png) no-repeat 0 0;}
p {
vertical-align:middle;
margin:0;
padding:0;
}
a {
font-family:Arial, Tahoma, Helvetica, sans-serif;
font-weight:800;
font-size:20px;
text-transform:lowercase;
text-decoration:none;
color:#000000;
display:block;
margin:0;
padding:0;
margin-top:15px;
margin-bottom:15px;
width:160px;
height:50px;
position:relative;
}
a:link { font-weight:bold; }
a:visited {color:#333333;}
a:hover {font-size:32px;}
#shop {margin-left:10px;}
#shock {margin-left:20px;}
#about {margin-left:30px;}
#guest {margin-left:15px;}
</style>
</HEAD>
<BODY>
<p> <a class="links" href="newsIndex.htm" target="InhaltFrame" title="News from XYZ">news</a> </p>
<p> <a class="links" id="shop" href="shop.htm" target="InhaltFrame" title="Shopping XYZ">shop</a> </p>
<p> <a class="links" id="shock" href="shock.htm" target="InhaltFrame" title="XYZShock">XYZ shock</a> </p>
<p> <a class="links" id="about" href="aboutH.htm" target="InhaltFrame" title="About XYZ">about</a> </p>
<p> <a class="links" id="guest" href="guestbook.php" target="InhaltFrame" title="Visit our XYZ guestbook">guestbook</a> </p>
<p> <a class="links" href="contact.htm" target="InhaltFrame" title="Contacting XYZ">contact</a> </p>
</BODY>
</HTML>
Eigentlich sollte das doch ohne Probleme gehen, ein Pixel ist schließelich ein Pixel ist ein Pixel! Soviel Interpretationsspielraum habe ich ihm doch nicht gelassen.
Achja, die <p>-Tags um die Links herum sind nur für den IE4 (zumindest auf dem Mac), der ignoriert sonst das display:block; habe bisher noch nicht getestet, ob's jetzt auch ohne funktionieren würde.
Grüße von mir
Masin