«« Next » « Previous
«« Next » « Previous

Link Details

Announcement

iPhone DZone: Fresh Links On Your iPhone by matt at Sat Jul 05 14:09:51 EDT 2008

Reading DZone on your iPhone just got a little bit easier. Visit http://dzone.com/iphone from your iPhone to try out our beta iPhone support. You can view stories, filter by tags, and login. We'd appreciate your feedback at feedback@dzone.com.

Good things come to those who vote! Login and vote now.
Link 76432 thumbnail

By rlamarch
via snook.ca
Published: Apr 18 2008 / 07:10

When asked recently about using a CSS reset stylesheet, I readily admitted that I don't use them. I don't use them for my blog or for any project that I work on. Admitting such can raise an eyebrow or two. Reset stylesheets are definitely becoming commonplace — as you'd expect with companies like Yahoo and industry leaders like Eric Meyer actively using them. So, why haven't I jumped on board?
  • 13
  • 5
  • 1320
  • 474

Comments

Add your comment
User 266215 avatar

bangpound.myopenid.com replied ago:

2 votes Vote down Vote up Reply

The author undermines his own credibility on the topic when he says "I'm okay if the various browsers show things slightly differently."

Well, a lot of us use CSS Reset because it's pretty much the only way to achieve consistency. It's not just "a few pixels" of difference. It's not just header elements. What about the browsers that use padding instead of margins for lists?

User 246161 avatar

section31 replied ago:

-4 votes [show comment] Vote down Vote up Reply
User 238392 avatar

davidwalsh replied ago:

2 votes Vote down Vote up Reply

He'd be an idiot if he told you that YOU shouldn't use them. He's simply stating his preference. His blog doesn't require registration for commenting, so feel free to go over to his blog and call him an idiot.

User 283124 avatar

jonathansnook replied ago:

1 votes Vote down Vote up Reply

I'm not sure how I've undermined my own credibility. A CSS Reset is not the only way to achieve consistency. Yes, some browsers may use padding for lists and others use margin. But what does the default look like? About the same. If I need to change it, I create a style to address that list by setting padding and margin, again, achieving consistency across browsers. In any case, I never said don't use them. I merely said that I don't use them and explained the reason why. None of my work has suffered or been more difficult because of the lack of a CSS reset.
,

User 207069 avatar

hal10001 replied ago:

0 votes Vote down Vote up Reply

Sorry, but reset style sheets are like most every other Web technology -- it comes down to preference. I have never used a reset style sheet in order to deal with cross-browser inconsistencies. I have built some complicated layouts, and I just never had a need. Don't be a fanboy. If it works for you, then great, if not, then that is fine as well. Jonathan Snook was just pointing out that you have options, and the reasons why he does not use them.

User 196882 avatar

Eric Wendelin replied ago:

0 votes Vote down Vote up Reply

You have to think of the future (meaning stuff is rendered on all sorts of devices and resolutions) when considering this. It may end up better if we accept that our pages are NOT going to be rendered the same everywhere. Not even close. Obviously it works for some (including me because I don't develop for mobile yet) but Mr. Snook is rightly reminding us that the CSS reset should not be our comfort blanket.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.