次の方法で共有


One Way to Level the Layout Playing Field

One of my pet peeves about CSS and HTML standards is sometimes, they aren't overly explicit, and browser vendors pick arbitrary values for things like line height, or margin or padding and the like.  Eric Meyer has talked about a reset.css stylesheet that would effectively eliminate those differences and override the browsers value with the ones that you know and you specify.

I'm excited to see that he posted a version of it (though reading the comments, it sounds like there will be a few revisions coming) on his blog today.  I'd highly recommend checking it out.  He based it on the one from the guys at Yahoo! UI, added a few things and tweaked a few others.  It's certainly one way to help eliminate those frustrating hair pulling "why isn't this working" kinds of questions!

Comments

  • Anonymous
    April 12, 2007
    Thank you. Pete-- Within the same vein, would the addition of  the min-width property with the value of 0 within Meyer's reset style sheet resolve any of the issues of haslayout within IE?

  • Anonymous
    April 13, 2007
    This is the only reason why I hate CSS based layouts.  But, if they can come up with a way to set a "middle layer" that would make all browsers behave the same way, I am all for it.

  • Anonymous
    April 14, 2007
    The comment has been removed