I am currently trying to create a 2 column list of links, however when a link goes onto multiple lines, it leaves a gap in the next column. I have solved similar problems in the past using Masonry, though this always seems overkill everytime I need to use it. Is there a clean CSS way of achieving this layout without using JQuery plugins and the like?
Markup
<ul class="two-col-links">
<li><a href="">About us</a></li>
<li><a href="">Press</a></li>
<li><a href="">NMMT</a></li>
<li><a href="">Careers</a></li>
<li><a href="">Sitemap</a></li>
<li><a href="">Partners & <br>Links</a></li>
<li><a href="">Terms & <br>Conditions</a></li>
</ul>
CSS
ul {
width: 200px;
}
li {
width: 100px;
float: left;
display: inline;
}
Note on the example above how "Partners & links" leaves a gap on the left hand column - is there a way around this to remove this gap?