Jump to content

Space Between Div's / Elements


mrbean

Recommended Posts

the margin actually exists. the problem is with your floated elements, as they are removed from the natural flow of the document, thus giving you the impression the margin isn't being applied. the answer to this is a 'clearfix'. You can go the old-school way and do a `<div class="clear"></div>` or you can go "semantic" and add your clears to a psuedo element like ':after'.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.