Previous Message
Next Message

Default tag styles?

Sent by Zoe Gillenwater on 17 June 2004 21:09


MattH wrote:

> Is there a list somewhere of what styles tags have by default?  I'm 
> trying to find out where an margin (or padding is coming from) and it 
> would be easier to check a list like that instead of trying every value.


Different browsers have different default styles for tags.  For 
instance, IE and Moz put 8px margin on the body, Opera puts 8px padding.

If you have a gap or misalignment and are trying to figure out where it 
is coming from, it is often helpful to put borders or backgrounds on the 
affected elements (or all elements) to see which one has the gap, if it 
is internal or external to the element, etc.  There are a number of 
bookmarklets that can do this for you as well, though I tend to just do 
it by hand when the need arises, so I can't recommend a particular one.  
I do use the Web Development Toolbar, which has a handy outlining feature.

http://www.chrispederick.com/work/firefox/webdeveloper/

Zoe

-- 
Zoe M. Gillenwater
Design Specialist
Highway Safety Research Center
http://www.hsrc.unc.edu


______________________________________________________________________
css-discuss [EMAIL-REMOVED]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Previous Message
Next Message

Message thread: