Home / Blogs / Research Blog / Essential CSS Reset

Essential CSS Reset

Here's an absolutely essential bit of code for any web designer working with CSS.

We've all run into the wealth of inconsistent CSS renders that take place with IE compared to all other browsers. 

As a way of avoiding many of these issues, you should always start your CSS file with the following code:

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-size: 100%;
}

This will ensure that any relevant CSS elements have been set with a 0 value prior to any other CSS elements being defined.  By doing this you are ensuring that IE & other browsers handle some of the available CSS elements in a consistent way.

It won't fix all the issues with IE, but it will certainly help some of them!


blog comments powered by Disqus
 
Share
Banner

Research Blog

What our clients say

Big Spring completely re-designed our whole website, giving us a much more functional site and were easy to work with.

Connect

Joomla Logo

Company News

Latest Projects

Contact Us

BigSpring UK Limited
29 St Austins Drive
Nottingham
NG4 3EY

Office: 0115 714 2282 (Mon-Fri 9am - 5pm)
Email: hello [at] bigspring.co.uk