Results 1 to 3 of 3

Thread: Cross Browser Headaches...

  1. #1
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Angry Cross Browser Headaches...

    Well, here goes...

    I'm working on a tabbed menu in which the tabs will "change colors" and "pop up" upon rollover... Small task which is seemingly easily achieved with css. NOT

    I have it working just fine and dandy in IE 5+ but when it comes to FF, well... not so much.

    I've tried every possible avenue of approach that I know to get this to work in both browsers. None of which have worked. I've tried everything from using two images with a class for normal and "hover", I've tried a single image with relative positioning and negative x-position on hover, I've tried the ":focus" method... I just can't seem to figure out what the problem is.

    Everything works just fine when I view it in IE, it also works properly when I view it in the integrated browser in EditPlus3. (my text editor of choice)

    However, in FF the images being used as the background do not even show up, the space where they should be is filled up with the overall background image used in the page. When you mouse over the images in FF they do appear, but NOWHERE near where they should be. They're far too low. Only the top portion shows up... and it's at the very bottom.

    Below are two links. One is a screenshot of what I'm seeing in FF, the other is a direct link to a test page which includes the css I'm using. (rather, TRYING to use)

    Screenshot Link

    Test Page Link

  2. #2
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    1,160
    Thanks
    17
    Thanked 277 Times in 275 Posts

    Default

    Fix your CSS Error, and add the display:block.

    Take this part as an example:
    Code:
    .Blogs, .Blogs:a, .Blogs a:link, .Blogs a:visited, .Blogs a:active{
    background-image:url('images/Blogs.jpg');
    display:block;
    }
    First highlight in red is erroneous (as depicted on validator). The second highlighted (in red) should be added since FF displays your tabbed really odd.

    Hope it helps.
    Last edited by rangana; 06-12-2008 at 04:40 AM.
    Learn how to code at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph!

  3. The Following User Says Thank You to rangana For This Useful Post:

    TheJoshMan (06-12-2008)

  4. #3
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default Fixed!

    Hey thanks alot... The "display:block;" worked (sorta).

    I also had another error in my css that I didn't catch.
    In the long list of things in which to apply the attributes, I had the ".Home, .Blogs, .Pictures, .Add, and .Message" in there as well which are the classes which were applied to the "td" for each button. So adding "Display:block;" worked fine on the first button, but every button thereafter would be beneath the one before it.

    Anyway, long story short... Your answer was correct and after a few minor tweaks I got it all working.

    Thanks a million!

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
  •