PDA

View Full Version : Default browser values for CSS(2) implementation


Jerome
03-16-2003, 11:55 AM
Hi,

I am currently updating my style-sheets (let we say from home-made to W3C standards), to be sure I have 2 questions

Q1.

Do You know or have a list with the default browser values/settings regarding CSS(2) f.e.:

This is just an example, values may not be correct!

Concerning: DIV

Default values
IE 5.0: background=#FFFFFF
IE 6.0: background=transparent
Opera: background=#000000
Mozilla: background=transparent

Etc, etc, not only for DIV and not only for background, but a complete list

Maybe this wasn't a good example with the background, because the user can change these settings, what I mean are the settings which can not be changed by the user.

Q2.

When the default value in every browser of - border:0 - and I want to have a - border:0 -, do I need to explicit write - border:0px - in my separate stylesheet yes or no?

Thanks for Your advice,
Jerome

brothercake
03-16-2003, 02:41 PM
I don't know of any documentation; but I suspect it would not be particularly useful anyway; misleading even. Using [X]HTML and CSS your markup should be semantic rather than visual; in other words, it doesn't matter what the style defaults are.

If you want a convenient visual indication of the semantic meaning of an element, then a non-CSS browser like netscape 3 is useful. This can help to grok semantic coding - for example, <strong> is generally bold and <em> is generally italic, but they also have semantic meaning, and so are prefereable over <b> and <i>

But to address your specific question -
DIV and SPAN are always transparent - they're neutral placeholders which imply no formatting except their display. Similarly with other elements, it's best to assume no implied formatting at all; specify everything you care about.

Jerome
03-16-2003, 03:03 PM
Thanks Brothercake,

I should have reading W3C-site first.......

Jerome