Feeds:
Posts
Comments

Archive for October, 2014

This is from http://css-tricks.com/snippets/css/clear-fix/, use this css style class:


.clearfix:after {
     visibility: hidden;
     display: block;
     font-size: 0;
     content: " ";
     clear: both;
     height: 0;
     }
.clearfix { display: inline-block; }
/* start commented backslash hack \*/
* html .clearfix { height: 1%; }
.clearfix { display: block; }
/* close commented backslash hack */

Just add class="clearfix" to the parent element to fix the overlowing children.

Advertisements

Read Full Post »