Posted By

misteroneill on 09/01/09


Tagged

clear float reset


Versions (?)


Advertising

Website Promotion DIRECTORY is a crucial factor for all websites that need to gain better organic search engine rankings and increase website traffic.
Submitting your website as part of your Web Promotion strategy to our SEO friendly and high traffic Business Directory for review is an excellent way to gain a valuable backlink and increase your websites visibility online.

Submit Site


Who likes this?

3 people have marked this snippet as a favorite

vali29
rickfu
shanelemon


Reset CSS plus Clearfix


Published in: CSS 






URL: http://www.misteroneill.com

This is Eric Meyer's (meyerweb.com/eric/) CSS Reset with the "clearfix" class added in for forcing containers to wrap floats. Also, uses the uncommon "zoom" property to achieve the same effect in IE6/7. I like "zoom:1;" for this purpose because as an invalid CSS property, it stands a much better chance of not influencing other/good browsers' rendering.

Expand | Embed | Plain Text
  1. html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent;}body{line-height:1;}ol,ul{list-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none;}:focus{outline:0;}ins{text-decoration:none;}del{text-decoration:line-through;}table{border-collapse:collapse;border-spacing:0;}.clearfix:after{content:".";display:block;height:0;clear:both;visibility:hidden;}.clearfix{*zoom:1;}

Report this snippet 

You need to login to post a comment.