Reputation: 4163
If I have the following
<ul class="Tabs_control">
<li class="boom">
<li class="boom">
</ul>
How can I float the second li element to the left?
Upvotes: 0
Views: 55
Reputation: 9460
Html
<ul class="Tabs_control">
<li class="boom"> Item 1 </li>
<li class="boom">Item 2 </li>
</ul>
CSS
.boom {
display:inline;
float:left;
padding:10px;
}
Upvotes: 1
Reputation: 125630
nth-child(2)
should do the trick:
.Tabs_control li.boom:nth-child(2) {
float: left;
}
Upvotes: 1