3 ms·
I prefer to completely reset all default CSS rules and specify them manually. Works great for me, I haven't noticed any drawbacks. * { background-c
by ElbertF 16y ago
I prefer to completely reset all default CSS rules and specify them manually. Works great for me, I haven't noticed any drawbacks.
* {
background-color: transparent;
border: none;
border-spacing: 0;
font-size: inherit;
font-weight: inherit;
font-family: inherit;
line-height: 1.5em;
list-style: none inside;
margin: 0;
padding: 0;
text-align: inherit;
text-decoration: none;
}
- DCoder 16y agoThat loses all default theming from form inputs though.
- kilian 16y agoApart from form inputs getting really messed up, there's a 'massive' speed penalty you incur by using the * selector to reset everything. Where massive probably isn't large enough for most websites, so if it works, carry on :)