Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS UGH! IE Problems in CSS

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #30020
    telters
    Member

    Check out this website : http://www.ventuswebdesign.com/dev/bart (Username:user Password:user)

    In all browsers except IE, the navigation appears fine, and the UL styling works

    But, in IE, it looks like a list, and every navigation button appears to be on a different line! UGH! Can I have some help here!

    #81589
    mithi
    Member

    Hi Telters,

    To fix this in IE you need to add display: inline; to the #nav ul li {} selector in your css file.

    Also just a suggestion the way you have implemented the menu is a bit of a long winded one and not the most symantic and the use of javascript to do the hovers is unnecessary.

    I recommend using something like this



    and for the css add padding to the li elements to create the boxes around the text with a background set for both the normal state and the :hover state.

    Thanks
    Milo

    #81583
    telters
    Member

    Wow, that makes a whole lot more sense!

    So, my CSS would look like this


    (display: inline to #nav ul li)

    #nav ul li a:active {
    padding-left:5px;
    padding-right:5px;
    background-color:#000;
    color:#FFF;
    }

    #nav ul li a:hover {
    padding-left:5px;
    padding-right:5px;
    background-color:#FFF;
    color:#000;
    }

    ????

    Thanks

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.