CSS Reset – Most Common CSS Resets to copy/paste.
A CSS Reset is a set of CSS rules that resets the styling of all HTML elements.
Every browser has its own default ‘user agent’ stylesheet, with a CSS Reset your websites look the same in every browser.
C’mon! The Source Code to copy/paste:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | /* CSS Reset START */ html, body, div, span, applet, object, iframe, h 1 , h 2 , h 3 , h 4 , h 5 , h 6 , p, blockquote, pre , a, abbr, acronym, address, big, cite, code , del, dfn, em, font, img, ins, kbd, q, s, samp, small , strike, strong, sub , sup, tt, var, b, u, i, center , dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption , tbody, tfoot, thead, tr, th, td { margin : 0 ; padding : 0 ; border : 0 ; outline : 0 ; font-size : 100% ; vertical-align : baseline ; background : transparent ; } body { line-height : 1 ; } ol, ul { list-style : none ; } blockquote, q { quotes : none ; } blockquote:before, blockquote:after, q:before, q:after { content : '' ; content : none ; } /* remember to define focus styles! */ :focus { outline : 0 ; } /* remember to highlight inserts somehow! */ ins { text-decoration : none ; } del { text-decoration : line-through ; } /* tables still need 'cellspacing="0"' in the markup */ table { border-collapse : collapse ; border-spacing : 0 ; } /* CSS Reset END */ |