css - Cheap way to reset all margin and padding -


i building site performance critical , far heaviest css-selector is

* {   margin: 0;   padding: 0; } 

is there cheaper way remove margin , padding without loosing convenience selector offers?

update: yes, using tested library idea, appreciate if prove "cheaper" data

try list elements way (more infos http://meyerweb.com/eric/tools/css/reset/ ):

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, 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, article, aside, canvas, details, embed,  figure, figcaption, footer, header, hgroup,  menu, nav, output, ruby, section, summary, time, mark, audio, video {     margin: 0;     padding: 0; } 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -