/ Published in: CSS
                    
                                        
As used by Posterous. Forces parent element to stretch to the dimensions of its child element.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
.clearfix:after { visibility: hidden; display: block; font-size: 0; content: " "; clear: both; height: 0; }
* html .clearfix { zoom: 1; } /* IE6 */
*:first-child+html .clearfix { zoom: 1; } /* IE7 */
Comments
 Subscribe to comments
                    Subscribe to comments
                
                