W3C home > Mailing lists > Public > www-html@w3.org > April 2000

RE: Ignoring empty paragraphs

From: <JOrendorff@ixl.com>
Date: Mon, 10 Apr 2000 18:19:51 -0400
Message-ID: <CD8E2CDBC6D0D111ACB900805FBBD97E0263029C@host131sub18.offices.ixl.com>
To: www-html@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:43 GMT