LearnApplying Normalize.css Reset – Quick Tip


Guil Hernandez
writes on October 31, 2012

In this Quick Tip we’ll learn about Normalize.css, a new CSS tool we can use as an alternative to traditional CSS reset methods.

Normalize.css makes browsers render all elements more consistently and in line with modern standards. It precisely targets only the styles that need normalizing.

Video Transcription

Guil: Hi, I’m Guil from Treehouse. In this Quick Tip, we’ll learn about
Normalize.css, a new CSS tool we can use as an alternative
to traditional CSS reset methods. Let’s check it out. Most
CSS resets provide developers a baseline for styling pages
by completely removing certain browser style
inconsistencies, such as margins, padding, line height, and
heading font sizes.

But depending on your project, it’s okay to leave in some
of those basic default browser styles. What Normalize.css
does is it preserves useful browser default styles instead
of removing all default styles from every element. It also
corrects common bugs like display settings for HTML5
elements, font size rendering, and form element styling.

All HTML elements will render consistently and in line with
modern web standards. You can download Normalize.css at
necolas.github.com/normalize.css. Or grab the files on
GitHub at /necolas/normalize.css. So save the file in your
project folder, then you can link to it from your HTML file
right above your main style sheet. Or you can import it
from your main style sheet and you’re all set.

There are some advantages to using Normalize.css over other
CSS reset methods. Since it preserves useful default
styles, there’s no need to overwrite a lot of element
styles. Headings and paragraphs, for example, preserve
their default styles consistently across the browsers.
Another neat feature is that it also makes form elements
cross-browser consistent and styleable.

The normalized style sheet is small in size and it’s
modular, so it makes it easy for us to see exactly which
elements need specific styles, and we can also remove
entire sections of the CSS file if we do not need them in
our project. The CSS file also has detailed in line
documentation explaining why each rule was added and how it
affects each browser.

If you’re using HTML5 Boilerplate from
html5boilerplate.com, Normalize.css is already included. It
also has wide browser support, including mobile browsers.
Normalize.css is not necessarily a better solution over
other CSS reset techniques. It’s just an alternative method
that depending on your project might be the best fit.

With other full CSS resets, you begin from no styles
whatsoever and build up from there. Normalize.css lets you
start somewhere in the middle in a state that’s consistent
in all browsers. Then you build up or down as you need to.

If you’ve been using CSS resets for a while, give
Normalize.css a try. You might realize that your site might
require less fixes for browser compatibility than you
thought. As with any tool or framework, read the
documentation first to make sure it’s the right solution
for you.

Announcer: If you’d like to see more advanced videos and tutorials like
this one, go to teamtreehouse.com and start learning for

5 Responses to “Applying Normalize.css Reset – Quick Tip”

  1. エルメス スーパーコピー品激安通販!完璧品質!お客様の満足度は業界No.1です!
    2015年の新素材-新作!高品質 腕時計高品質の追求 超N品を良心価格で提供詳しくは以下のようなブランドがあります。HERMES(バッグ、財布、時計) CHANEL(バッグ、財布、時計)LOUIS VUITTON(バッグ、小物、財布、時計) BVLGARI(財布、時計)Christian Dior(バッグ、財布) COACH(バッグ、財布)GUCCI(バッグ、財布) ROLEX(時計)OMEGA(時計) IWC(時計)FRANCK MULLER(時計) HUBLOT(時計)クロエ CHLOE バッグなどです。ご不明点が ございましたらお気軽にお問い合わせください http://www.gowatchs.com/brand-258.html

  2. 100%実物写真ですし、品質が完璧です!”スーパーコピーブランド財布激安 偽物財布激安コピー ルイヴィトン財布偽物,偽物財布コピーエルバーキンコピースーパーコピー財布ブランド財布コピーブランドコピー激安バレンシアガ スーパーコピー激安ロレックス スーパーコピー時計ブランド財布激安 偽物財布激安コピー ルイヴィトン財布偽物,偽物財布コピーブランド激安市場-jck35販売:ブランド財布コピー,激安ブランド,財布コピー,偽ブランド,偽 ブランド財布,偽物ブランド財布,ブランドコピー,ヴィトンコピー,ルイヴィトン財布偽物, シャネル財布コピー,グッチ財布コピー,エルメス財布偽物,D&G 財布コピー,ボッテガ 財布 .2013年新作スーパーコピーロレックス,スーパーコピーロレックス時計通販スーパー コピー品その他の世界一流ロレックススーパーコピー時計品を扱っています。 ホームページをクリックして商品をご覧下さい.ロレックスコピー,業界No.1人気スーパーコピーロレックス腕時計専門販売ロレックスコピー(ROLEXスーパーコピー)のロレックス レプリカ販売専門店です。すべての商品は品質2年無料保証です,ロレックス デイトジャスト 偽物,人気満点ロレックス コピーn級品新作大特集
    スーパーコピーブランド格安販売店はこちらへ!品々の激安価格に持ったスーパーコピーブランド 代引きの新作はお客様に提供されます。安心、迅速、確実、お客様の手元にお届け致します。★弊社は9年の豊富な経験と実績を持っております。★一流の素材を選択し、精巧な作り方でまるで本物のようなな製品を造ります。★品質を重視、納期も厳守、お客様第一主義を貫きは当社の方針です。★驚きの低価格で商品をお客様に提供致します!★早速に購入へようこそ! http://www.newkakaku.net/boq1.htm

  3. Roop Gohain on April 24, 2013 at 12:23 am said:

    Today I have install normalize.css in my joomla2.5 template, removing reset.css. In my opinion this should be the first choice of every designer. It reduces my job up to 80%.

Leave a Reply

You must be logged in to post a comment.

Want to learn more about CSS?

Learn how CSS allows you to apply visual styling to HTML elements with colors, fonts, layouts, and more.

Learn more