CSS Reset

Getting browsers to display content the same way can be quite a task... Use the 'CSS Reset' to iron out most problems...

Getting the many different browsers to agree to display page content the same way can be quite a task… A good way to start is with the ‘CSS Reset’, that cleverly ‘resets’ the default setting browsers add themselves….

Just copy the following at the top of your stylesheet…

/* CSS Reset */
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,button,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; font-family:Arial, Helvetica, sans-serif; }
ol,ul{list-style:none}
blockquote,q{quotes:none}
:focus {outline:0}
ins{text-decoration:none}
del{text-decoration:line-through}
table{border-collapse: collapse;border-spacing:0}

No related posts.

This post has had 21 views