Chris_J_W
06-09-2005, 12:35 AM
Just wondering if there's an easy way to set all applicable CSS attributes for a given HTML element to their default values?
CJ :D
CJ :D
|
Click to See Complete Forum and Search --> : Reset to default attributes Chris_J_W 06-09-2005, 12:35 AM Just wondering if there's an easy way to set all applicable CSS attributes for a given HTML element to their default values? CJ :D David Harrison 06-09-2005, 03:05 AM The defaults for each element are different in different browsers, just specify some general ones. I put this at this top of my CSS file:*{ margin:0; padding:0; list-style-type:none; }So when I when I use paragraphs I have to tell it this:p{ margin:0.5em; }It's not the same as the browsers default value, but it's good enough, I just tweak the value until it looks right. ffurnai 06-09-2005, 03:51 PM Here is a pretty good article and example for setting things to be the same across all browsers. Its not the "default" as all browsers have different browsers. http://leftjustified.net/journal/2004/10/19/global-ws-reset/ but, like David, I have a standard start to my stylesheets that looks pretty much the same as his. * { margin: 0; padding: 0; } webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |