Hey there! I've been experimenting with some CSS code that I thought should work, but unfortunately it's not displaying properly in Google Chrome.
<ul>
<li><a href="...">bla</a></li>
<li><a href="...">bla</a></li>
<li><a href="...">bla</a></li>
<li><a href="...">bla</a></li>
<li><a href="...">bla</a></li>
</ul>
I have the following CSS:
ul li {
float:left;
}
ul li:nth-child(3):after {
content:"";
display:table;
clear:both;
}
In a responsive design, I expected the list items to start on a new row after every third item. Any suggestions for how to make this work? Shouldn't this code be functioning correctly?