/ Published in: CSS
Add class \"clear\" to elements that contain floated elements and they will hold the height correctly
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* CLEAR FLOATS /* Add class "clear" to elements that contain floated elements and they will hold the height correctly /* updated: 01.10.2010 *******************************************************/ .clear:before, .clear:after { content: "."; display: block; height: 0; visibility: hidden; } .clear:after {clear: both;} .clear {zoom: 1;} /*******************************************************/