Musings of Geekdom by Eric Newton

tail /var/log/thoughts
posts - 88 , comments - 41 , trackbacks - 68

Tuesday, January 17, 2012

Style sheet strong arm: Reset.css versus Normalization.css

I have a pet peeve: designers that always start with reset.css stylesheet.  

There are so many flaws with this approach:
  • all styles... all elements, everything, is reset to padding 0, margin 0, font-size: 100% (whatever that means) and so forth.  So utilizing an h1 requires "restyling" an h1 to be somewhat bigger, somewhat bolder than the average text.  And make that bigger and bolder than h2, and likewise h3, and likewise h4, h5, and h6.
  • the css inheritance chain is difficult to navigate.   Since the reset.css touches every single element, and after you've spent time "restyling" every element to have their semantic meaning reflect their visual cues, you end up with many overrides to every style.  IMO this makes it more difficult to hone in on what style is not correct.
The advantages of a reset.css:
  • every element is consistently lame, lacking the visual cue of the semantics of the text
ENTER THE SAVIOR, Normalize.css...
  • It normalizes all elements to reasonable settings.  For example, I've personally noticed that the <abbr> element is displayed differently in Chrome, IE, and Firefox.  Normalize.css effectively makes the <abbr> tag consistent across all the browsers... winning!
  • It tackles bigger problems that were out-of-scope for reset.css, like old browser handling of styles
I would suggest all developers, designers, and HTML gurus to rethink using that reset.css, and look into getting normalize.css and put down that reset.css, reset.css is for losers.

Posted On Tuesday, January 17, 2012 10:32 AM | Comments (0) |

Rejuvenate the blog

Time to rejuvenate the blog.  Many things afoot in the world of developement.

Of note,
  • MVC 4 RC is coming out soon.  Eh, I don't really see much new there.  A couple of interesting additions but like I said... eh.
  • Umbraco 5 RC2 was released.  You can get it at  Umbraco is a very nice CMS that runs on top of ASP.Net, and version 5 has been signifigantly rewritten to run on the MVC framework.  The existing Umbraco 4.7.1 is still a respectable CMS, and there's lots of community-built plugins.

Posted On Tuesday, January 17, 2012 10:21 AM | Comments (1) |

Powered by: