From a27246fcabe7a5b57e08341aac36b81c287cac71 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 17 May 2011 09:27:55 -0700 Subject: [PATCH] Add table element normalization. Add default font-size and line-height to . Set font-family on and form elements to improve consistency. Set font-size:100% on form elements so they inherit body's font-size. --- normalize.css | 56 ++++++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 47 insertions(+), 9 deletions(-) diff --git a/normalize.css b/normalize.css index e9a501d..66b2383 100644 --- a/normalize.css +++ b/normalize.css @@ -51,11 +51,28 @@ html { } /* - * Remove margin from element + * 1. Define the base font-size of choice; set in % or em to retain text resizing in IE6/7 + * 2. Define the base line-height of choice. + * 3. Remove margin from element */ body { - margin: 0; + font-size: 100%; /* 1 */ + line-height: normal; /* 2 */ + margin: 0; /* 3 */ +} + +/* + * Define the base font-family and text color for and form elements + * Fixes font-family inconsistency between