Log in

View Full Version : CSS and Hover Backgrounds / IE vs Firefox



marklbishop
08-03-2007, 12:03 PM
I'm a relative newbie at css but trying.

I am working on a new site and trying to do a rollover effect using css. I essentially have a transparent gif in a table cell. On rollover I'm swapping the background for a hover effect.

It is working great in Firefox, but in IE, the image pushes down one pixel. I have no idea why. Does anyone have any thoughts?

The page I'm working on is here:

http://animalsense.com/_new/

Thanks.

jscheuer1
08-03-2007, 01:29 PM
Most likely it is because you are changing the display to block. If you were to begin with it like that:


#globalnav td a:link {
display: block;
}

It probably wouldn't move, but would start out in a slightly different spot.

marklbishop
08-04-2007, 01:35 AM
Thanks. However, it didn't change anything. :( That sure made sense, but I"m still having the same IE problems.