O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Resetting or Normalizing Default Styles

As mentioned, each browser has a built-in style sheet that dictates the presentation of your HTML unless you write your own CSS to override it. The default browser styles are fairly similar on the whole, but they have enough differences that it’s common for developers to level the playing field before they apply their own CSS.

There are two main ways to level the playing field:

• Begin the main style sheet with a CSS reset, like the Meyer reset created by Eric Meyer (http://meyerweb.com/eric/tools/css/reset/). There are also other reset style sheets available.

• Begin the main style sheet with normalize.css, created by Nicolas Gallagher and Jonathan Neal. Find it at http://necolas.github.com/normalize.css/ ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required