richiebman
06-21-2004, 08:20 AM
The following code works beautifully in Firefox, Mozilla, Opera, Netscape 6.0 + but unsuprisingly not it any IE. Sigh. I've nearly given up.
Here is the HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="./stylesheet.css" />
</head>
<body>
<div id="switch">
<ul>
<li class="home">| <a href="#">Home<span>» Home</span></a> |</li>
</ul>
</div>
</body>
</html>
Here is the CSS:
#switch li.home {
list-style:none;
position:absolute;
left:15px;
top:50px;
font-family:arial, sans-serif;
font-size:10pt;
font-weight:bold;
}
#switch li.home a {
color:#000000;
text-decoration:none;
}
#switch li.home a:hover {
color:#C00C00;
text-decoration:none;
}
#switch li.home a span, #switch li.home a:hover span {
position:absolute;
left:0px;
top:100px;
}
#switch li.home a span {
width:0px;
height:0px;
font-family:arial, sans-serif;
font-size:0pt;
color:#FFFFFF;
font-weight:bold;
text-decoration:none;
}
#switch li.home a:hover span {
width:150px;
height:50px;
font-family:arial, sans-serif;
font-size:24pt;
color:#E0DFE3;
font-weight:bold;
text-decoration:none;
}
If it can't be done, any other solution producing a similar effect that works in the browsers I mentioned would be welcomed. Must be in CSS though and not Javascript for example.
Cheers,
R
Here is the HTML:
<html>
<head>
<link rel="stylesheet" type="text/css" href="./stylesheet.css" />
</head>
<body>
<div id="switch">
<ul>
<li class="home">| <a href="#">Home<span>» Home</span></a> |</li>
</ul>
</div>
</body>
</html>
Here is the CSS:
#switch li.home {
list-style:none;
position:absolute;
left:15px;
top:50px;
font-family:arial, sans-serif;
font-size:10pt;
font-weight:bold;
}
#switch li.home a {
color:#000000;
text-decoration:none;
}
#switch li.home a:hover {
color:#C00C00;
text-decoration:none;
}
#switch li.home a span, #switch li.home a:hover span {
position:absolute;
left:0px;
top:100px;
}
#switch li.home a span {
width:0px;
height:0px;
font-family:arial, sans-serif;
font-size:0pt;
color:#FFFFFF;
font-weight:bold;
text-decoration:none;
}
#switch li.home a:hover span {
width:150px;
height:50px;
font-family:arial, sans-serif;
font-size:24pt;
color:#E0DFE3;
font-weight:bold;
text-decoration:none;
}
If it can't be done, any other solution producing a similar effect that works in the browsers I mentioned would be welcomed. Must be in CSS though and not Javascript for example.
Cheers,
R