- From: Joris Huizer <joris_huizer@yahoo.com>
- Date: Sun, 25 Aug 2002 04:14:17 -0700 (PDT)
- To: www-html@w3.org
A browser which supports CSS 2 doesn't need that, in fact - you can do something like this: p {margin-top:2px;} p+p {margin-top:5px; border-top:1px solid #000000;} However, because few browsers support the "Adjacent sibling selector" (+) - most autors still use <hr> or empty sections. In my opinion, <hr> is not needed, as ("advanced") css can do the same job the only problem is, an <hr> element can have a different width than the widths of either paragraph - so this might be a reason to use the <hr> element And an empty section can be given a background image - while a border can't be an image (which may be a reason for an autor to use empty sections rather than the <hr>) --- Tim Bagot <tsb-w3-html-0005@earth.li> wrote: > ... > There ought to be no need to mark up such a > separator explicitly. We would > not expect authors to write either of the > following:- > > <p>This is the first paragraph.</p> > <br/> > <p>This is the second paragraph.</p> > > <p>This is the first paragraph.</p> > <p/> > <p>This is the second paragraph.</p> > > > Tim Bagot > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com
Received on Sunday, 25 August 2002 07:14:19 UTC