Results 1 to 3 of 3

Thread: CSS and Hover Backgrounds / IE vs Firefox

  1. #1
    Join Date
    Jul 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CSS and Hover Backgrounds / IE vs Firefox

    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Most likely it is because you are changing the display to block. If you were to begin with it like that:

    Code:
    #globalnav td a:link {
    	display: block;
    	}
    It probably wouldn't move, but would start out in a slightly different spot.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Jul 2006
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks. However, it didn't change anything. That sure made sense, but I"m still having the same IE problems.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •