Forums

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

Home Forums CSS Menu styling with last-child of first child?

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #30711
    Starscream
    Member

    Hey ya’ll. First time post on this awsum site.

    I having sum problems with CSS/xHTML/thinking…
    On this site im working on, I use the ol’ classic UL menu. It looks like this:

    HTML

    CSS

    .menu-wrap ul li {
    list-style:none;
    float:left;
    }

    .menu-wrap ul li a {
    border-right:thin #fff solid;
    }

    And it looks like shit with the border-right on the last menu item. It kind of looks incomplete, like its missing a link on the end. I want to remove the border-right on the last menu item.

    This can be easily done with a class applied to it. But the thing is it will be used dynamically within a CMS site. So i wont be able to class the links.

    I have tried the :last-child and :first-child but the compatibility is not what i want because the client may be using IE6 or such shitty-devils-work browsers.

    Is there another solution? (Btw. Im from sweden, so my english may not be as evolved as yours :P)

    Thanks.

    #74966
    seeingsound
    Member

    I have used

    <--[if lt IE 9]>

    Of course jQuery has to be loaded before.

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