Web browsers often apply default styles to different elements, but users have the option to override these defaults using custom stylesheets.
I personally like to customize these default styles with my own, for example:
* {padding:0; margin:0; }
However, there are certain element attributes where I prefer to respect the default stylesheet, such as the <body>
's default padding and margin. I attempted the following:
* { padding:0; margin:0; }
body { padding:default; margin:default; }
Unfortunately, this approach did not work. Using initial
also failed.
Is there a way to address this issue by selecting all elements except for <body>
?