I have this code that consists of 5 uls in a div. I also have a piece of CSS that changes the last child's bottom margin. I have #divid ul:lastchild{margin-bottom: 10px;}
, and it works, but when I add more divs after the last ul it doesn't.
<div id="divid">
<ul>
<li>Item 1</li>
<li>Item 2</li>
<ul>
</div>
#divid ul:lastchild {
margin-bottom: 10px;
}