Home › Forums › CSS › selecting list items all but last? › Re: selecting list items all but last?
March 16, 2011 at 1:58 am
#55485
jamygolden
Member
It’s easier to ignore the first. So do this:
li + li{border-left: 1px solid red;}
That will place a border to the left of every list item except the first. This will work in IE7+