Forums

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

Home Forums CSS How to change the last menu item coding in a list? Reply To: How to change the last menu item coding in a list?

#148698
Ed
Participant

This will achieve what you want:

ul.MenuBarHorizontal li:first-child {
    border-left: none;
}

If you want it to support old IE, you could just add a class .first to the first li, and then use this CSS instead of the above:

ul.MenuBarHorizontal li.first {
    border-left: none;
}

Hope I’ve helped you!