On Fri, Mar 09, 2007 at 04:21:41PM +0000, Richard Lewis wrote:
On Friday 09 March 2007 16:04, Eur Ing Chris Green wrote:
How do you know which CSS properties apply to which selectors?
I.e. given that I want to change the spacing around lists how do I find whether it's padding or margin (or border?) that I need to change and/or what the defaults are? Not to mention how to know whether it's the space below the heading above or the space above the list that needs reducing.
Welcome to the wonderful world of HTML and CSS. There are standards for the syntax of both, and standards for the behaviour. But there are no standards or defaults for CSS property values. Every browser implements its own defaults for properties,
OK, so given that this is just for my own delectation and I'll be viewing it only using firefox are the firefox/mozilla defaults documented anywhere?
not to mention interpretation of (or, in some cases,
complete disregard for) the semantics and behaviour of HTML/CSS.
To answer your question: you don't. All you can do is experiment.
Hence the existing mess! :-)