I want to set a distance of 20px between every single list.
HTML:
<div id="folio">
<ul>
<li><img src=""></li>
<li><img src=""></li>
</ul>
</div>
CSS:
#folio { width:1200px; }
#folio ul li { width:588px; height:273px; display:inline-block; background:#cf5b6f; border:1px solid #8e1028; list-style:none; }
How can I do this?
As @Paul said, you should add:
Due to using
display: inline-block, you should also remove the whitespace in your HTML, like this:I also added another
widthand thenoverflow: hiddento#folioto mask the extramargin.See: http://jsfiddle.net/Brnsg/3/