Re: display property

On Thu, 26 Jun 2003, Jens Meiert wrote:
>>
>> By default, everything is 'display: inline'.
>
> That's not true. [paragraphs are display:block]

As I wrote in my original e-mail, the rule

   p { display: block; }

...is actually needed somewhere to get the usual effect that is expected.
User agents put this rule in the user agent stylesheet, so authors do not
have to put it in theirs.

The user agent stylesheet is not the "default". The default is given by
the initial value of the property, which in the case of 'display', is
indeed 'inline'.

-- 
Ian Hickson                                      )\._.,--....,'``.    fL
"meow"                                          /,   _.. \   _\  ;`._ ,.
http://index.hixie.ch/                         `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 26 June 2003 14:31:56 UTC