Forum Moderators: not2easy
On this page, there is an image rollover. Here's the relevant css
.apply
{
position: relative;
font-family: arial, helvetica, sans-serif;
background: url(../images/apply_button_ovr.gif) no-repeat;
white-space: nowrap;
display: block;
width: 172px;
height: 29px;
margin: 12px 8px 0px 0px;
padding: 0;
}
.apply a
{
display: block;
color: #000000;
font-size: 11px;
width: 172px;
height: 29px;
display: block;
float: left;
color: black;
text-decoration: none;
}
.apply img{width: 172px; height: 29px; border: 0px;}
* html a:hover{visibility: visible;}
.apply a:hover img{visibility: hidden;}
#apply
{
position: relative;
font-family: arial, helvetica, sans-serif;
background: url(../images/apply_button_ovr.gif) no-repeat;
white-space: nowrap;
display: block;
width: 172px;
height: 29px;
margin: 5px 8px 0px 0px;
padding: 0;
}
#apply a
{
display: block;
color: #000000;
font-size: 11px;
width: 172px;
height: 29px;
display: block;
float: left;
color: black;
text-decoration: none;
}
#apply img{width: 172px; height: 29px; border: 0px;}
#apply a:hover img{visibility:hidden;}
I found this on a site as a nifty way to do a css rollover. Works fine most everywhere.
However, I have a page on which there is one left column and one right floated column. If I hover over a certain link on the page, all the text below the right floated column disappears, the page height shrinks to the size of the left hand nav but there is a large space underneath the footer about the same length as the text that disappeared. If I rollover a link in the right-floated column, the text reappears correctly. Here's the css for the link that causes the text to disappear.
#breadcrumbs, #breadcrumbs a{text-decoration: none; font-size: x-small;}
I commented out the apply button rules dealing with visibility and found that the page stopped working as soon as I uncommented this line:
* html a:hover{visibility: visible;}
BUT, if I remove the right floated div, then I don't have the problem, even when this line is active. So it is some odd combo of the two. The css for the right-floated div is:
.rightnav{float: right; width: 40%; padding: 0px; margin: 0px; background: #cccc99;}
.rightnav ul{list-style-type: none; margin: 0px; padding: 5px 0px;}
.rightnav ul li{border-bottom: #ffffff solid 1px; padding: 3px 5px;}
.rightnav a{text-decoration: none;}
The problem only occurs in I.E. 6x. What might I be doing wrong? HELP!
[edited by: AWildman at 7:34 pm (utc) on Dec. 6, 2006]
**FIXED IT! I replaced:
* html a:hover {visibility: visible;}
with:
.apply a:hover {visibility: visible;}
Just in case anyone else runs across that handy little trick but has problems down the line!
[edited by: AWildman at 9:15 pm (utc) on Dec. 6, 2006]