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?
September 1, 2013 at 5:59 am
#148698
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!