From 11d60fe7ba81ebb83367077adfa01ebec9dc85b8 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 17 May 2011 04:46:20 -0700 Subject: [PATCH] Add normalization of
and
elements. Add input[type='reset'] to box sizing normalization. Add cursor:pointer for clickable inputs/buttons. --- normalize.css | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/normalize.css b/normalize.css index 48af0b3..26f1180 100644 --- a/normalize.css +++ b/normalize.css @@ -222,6 +222,24 @@ sub { /* ............................................................................................................. Form elements */ +/* + * Remove margin from element + * Fixes styling in IE6/7 + */ + +form { + margin: 0; +} + +/* + * Define consistent margin and padding for
element + */ + +fieldset { + margin: 0 2px; + padding: 0.35em 0.625em 0.75em; +} + /* * Define alignment for element * Fixes alignment displayed oddly in IE6/7 @@ -268,6 +286,19 @@ input::-moz-focus-inner { padding: 0; } +/* + * Display hand cursor for clickable form elements in all browsers except IE6. + * Improves usability and fixes inconsistent cursor style between type=image and other types + */ + +input[type="button"], +input[type="image"], +input[type="reset"], +input[type="submit"], +button { + cursor: pointer; +} + /* * 1. Disable default vertical scrollbar for