Normalize.css v1.0.0
necolas.github.com
necolas.github.com
I'm working on a project at the moment that has div {float:left} in the reset and it makes me weep.
Can I really just include without worrying about it?
button, html input[type="button"], input[type="reset"], input[type="submit"] {
cursor: pointer;
}
button[disabled], input[disabled] {
cursor: default;
}For example, this file disables the webkit text size adjustment on the iPhone. Text size adjustment is what makes most websites readable on the iPhone without excessive zooming / scrolling. You should disable it only if you are making a mobile optimized version of your website and the automatic text size adjustment actually causes problems.
No it doesn't.
/*
* 1. Corrects text resizing oddly in IE 6/7 when body `font-size` is set using
* `em` units.
* 2. Prevents iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-size: 100%; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
-ms-text-size-adjust: 100%; /* 2 */
}
Your statement would be true if it was setting -webkit-text-size-adjust:none, but 100% does as the comment says and only prevents resizing when changing orientations.If you have an iPhone, look at my test pages to see for yourself:
http://jabakobob.net/2012/08/hntest/test.html (without snippet)
http://jabakobob.net/2012/08/hntest/test2.html (with snippet)
For me, the first page renders with a much more legible text size.
It’s designed to be used as a reference. i.e. if my website uses an <em> element, I'll want to make sure I’ve ripped out those styles from normalize.css and placed them in my own CSS file. They will serve as a starting point. You should not be including the normalize.css directly on a page.
Personally, I prefer this kind of approach as opposed to a style reset. Style resets lose all visual information that originally came with the element. If a client wanted to use an <h4> but I didn’t style it in the first place it ends up looking like regular body text with no additional padding or margins. A normalise approach forgives me for my lack of forethought allowing an almost right for 90% of cases.
No thanks. rows and cols should mean something :(
[0] https://github.com/necolas/normalize.css/blob/master/normali...
I'd rather just get shit done (tm) than spend time learning all the nuances of cross browser css.