Browse files

initial commit

  • Loading branch information...
1 parent d5bde8c commit cf9bb69a0e029940e6e83e10027dcfc99f6ce6ab @vladocar committed May 16, 2010
Showing with 23 additions and 0 deletions.
  1. +23 −0 CSS-Mini-Reset.css
@@ -0,0 +1,23 @@
+/* CSS Mini Reset */
+html, body, div, form, fieldset, legend, label

teddyzetterlund Aug 4, 2010

DIVs are never styled by the browser so why add them in a reset?


vladocar Aug 4, 2010


Almost all CSS reset (Eric Meyer & YUI included) the DIVs are included. When I was building CSS Mini Reset I asked myself the same question do I really need to reset the DIVs. The answer was No, I can't find any good reason to put the DIV into the reset.The browsers starts with with margin and padding zero. So why I choose to put leave the DIV? My fears and paranoia's of the unknown, the DIVs are most used elements today and also most fragile elements so I want to eliminate any possibility and make sure they start from margin and padding zero.

+ margin: 0;
+ padding: 0;
+ border-collapse: collapse;
+ border-spacing: 0;
+th, td
+ text-align: left;
+ vertical-align: top;
+h1, h2, h3, h4, h5, h6, th, td, caption { font-weight:normal; }
+img { border: 0; }

0 comments on commit cf9bb69

Please sign in to comment.