So Many Modules – So Much Theming?

3 comments

1
DanJune 18th 2007 @ 02:39AM

Up until yesterday I wouldn't have given much thought to your choice to zero out the padding and margins--but then I read a couple of posts on Eric Meyer's blog about why this is a bad thing to do. The short version is that using the universal selector as you have suggested does indeed reset the padding and margins for *everything*--including form elements. Meyer explains here (http://meyerweb.com/eric/thoughts/2007/05/15/) why that's a bad idea. In a related post, he also explains--and documents--those elements he does reset: http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/. It's worth reading through the post and comments to see how he handles it as well as his rationale.

2
LaurenceJune 18th 2007 @ 02:09PM

Hi Dan, thanks for the links.

I would definitely agree with you that Eric Meyer's views on the whole resetting CSS issue are something that people should take the time to read through and understand, and I would also agree that the universal selector option is not perfect (although to be fair I never said it was ;). However, I think it's important to say that Eric Meyer's reset solution isn't perfect either.

If anyone wants to get into this subject I would suggest they start with Eric's post on Meyerweb entitled Reset Reasoning, where he first explains why he feels the need to implement a specific set of reset rules.

3
DanJune 18th 2007 @ 07:30PM

Laurence--glad you included the link to the initial post by Meyer--should have done that myself.

The big idea that I take away from Meyer's discussion of the reset rules is that beyond creating a baseline for all browsers, resetting the rules forces him to think about every element of the page and why he is styling it as he does. To put it another way, the reset encourages intentional design choices, and I think that's a good thing.

You noted in your post on stripping down the page template file to its skeleton (I think that's the one) that it's good to understand how the various elements work together up front and to solve design problems up front, rather than implementing code and then hoping you can figure out where the kinks and quirks are coming from. Another benefit of some sort of reset rules is that it helps with the problem solving.

Finally, Meyer himself notes that his rules are his--how he would create a baseline for his designs, and he encourages his readers to create their own--and to know why they are making the choices they make.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options