Forums

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

Home Forums CSS last-child selector – issue in IE Re: last-child selector – issue in IE

#92129
jamygolden
Member

http://jsfiddle.net/7rSMc/3/ – changed this piece of css:

ul.dropdown li:last-child {
padding-right: 42px;
}

http://jsfiddle.net/7rSMc/2/ – I added a couple of properties to this selector, namely the background, left and width properties:

ul.dropdown {
background: #647484;
font: 1.6em Verdana, Geneva, sans-serif;
position: absolute;
top: 103px;
left: 12px;
list-style: none;/*no bullets*/
width: 800px;
}