Normalize.css: An alternative to CSS resets
necolas.github.com
necolas.github.com
I'm not sure, however, I'm on board with the idea that you tweak this for every project you work. That would make merging future evolutions of these styles (e.g. when new browser versions are released) a real pain.
It's also a bit disconcerting that the project authors went their separate ways and there are now two projects? Hm.
Don't mean for this minor nitpick to overshadow the rest of the work you guys have put into this, by the way. It's good stuff.
YUI does a really good job with this.
[1]http://developer.yahoo.com/yui/3/cssreset/ [2]http://developer.yahoo.com/yui/3/cssbase/
Thanks in advance.
[1] http://css-class.com/test/css/defaults/UA-style-sheet-defaul...
Is there anything that is? I think I'd prefer to use that, if it existed.
I understand a lot of people treat it like that, though. I modify the reset to set defaults for each layout myself.
That's the reason for resets. Because "browsers" could mean one of a million different browsers and it would take forever to tweak each of them, since CSS isn't the same across the board. I'd like to see some CSS that isn't using a reset that looks perfect across IE 6, 7, 8, 9, Opera X-Z, Chrome X-Z, Firefox X-Z, and Safari. Additionally, I'm guessing such CSS could probably be done faster with a reset.
In other words, manually do a reset. You can't say reset is unnecessary and then say first thing, just do a reset.
font-size:100.01% is useful, too. http://stackoverflow.com/questions/4541421/is-using-font-siz...
> Preserves useful defaults
and I don't know what a "user default" is.
<strong> elements should generally show some kind of emphasis, probably boldface, but a full CSS reset sets them back to plain text. If all you've gained from the full reset is the opportunity to forget to set them back to boldface, what was the point?
This project looks like an attempt to retain the most useful properties of a CSS reset (like consistent default element margins) while forestalling the process of redefining each element piecemeal to look pretty much like what the browser would have shown in the first place.
https://github.com/necolas/normalize.css/blob/master/normali...
There's nothing earth shattering, but some things have non-zero margins, sub/sup have offsets, etc. CSS resets basically strip all default formatting, while this strips most of it.
Some css resets strip out bullet styles for lists, or focus styles on selected text boxes. I assume this keeps things like that intact instead of nuking everything.
That said, the form stuff in normalise.css takes a very different approach that I'm definitely gonna try out.
No version for Chrome?
(plain text) https://raw.github.com/necolas/normalize.css/master/normaliz...