From 2d1663e0e806e3a3882e4c5cd122eb3351daed35 Mon Sep 17 00:00:00 2001 From: Jason Gill Date: Fri, 13 Jul 2012 16:31:54 -0600 Subject: [PATCH] Add Clearfix Clearfix is an extremely helpful bit of code to clear floating divs in any browser. In my opinion it is as essential as a Reset. I've implemented here utilizing the Skeleton IE classes assigned in the index.html file rather than other popular css hacks often used for IE targeting on clearfix. --- stylesheets/base.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stylesheets/base.css b/stylesheets/base.css index 9ae0270..80b81b3 100644 --- a/stylesheets/base.css +++ b/stylesheets/base.css @@ -47,6 +47,11 @@ border-collapse: collapse; border-spacing: 0; } +/* Clearfix */ + .clearfix:after {content: ".";display: block;height: 0;clear: both;visibility: hidden;} + html.ie6 .clearfix {height: 1%;} + html.ie7 .clearfix {min-height: 1px;} + /* #Basic Styles ================================================== */