RE: Ignoring empty paragraphs

Matthew Brealey wrote:
> > Empty elements are 'ignored' by CSS, at least
> > with all current implementation's (except Netscape 4, which is so
> > completely broken that it will give different margins depending on
> > whether or not you include end tags on elements such as P) UA style
> > sheets. 

Branden N. McDaniel replied:
> You are making assumptions, though, about the UA default 
> style sheet here.
> There is nothing in the specs to prevent a UA default style sheet from
> including a rule
> 
>   p { border: 1px black solid }

More likely, a UA stylesheet might include:

  p {
    padding: 0.3em 0;
    margin: 0.4em 0;
  }

just so that if a user *does* later assign a border or background to
it, there will be an attractive amount of space around the content.

-- 
Jason Orendorff

Received on Monday, 10 April 2000 18:20:43 UTC