W3C home > Mailing lists > Public > www-style@w3.org > February 2001

Style rules to emulate HR

From: Ian Hickson <ian@hixie.ch>
Date: Sun, 18 Feb 2001 01:10:26 -0800 (Pacific Standard Time)
To: <www-style@w3.org>
Message-ID: <Pine.WNT.4.31.0102180107150.1076-100000@HIXIE.netscape.com>

This group has a long history of shooting down proposed CSS rules for
styling the default look of <br> elements, so I figured here would be the
best place to ask:

What is wrong with the following?

   br {
     display: block;
   }

   br:before {
     content: "\A";
     white-space: pre; /* in case white-space applies to :before */
   }

   br[clear=left] {
     clear: left;
   }

   br[clear=right] {
     clear: right;
   }

   br[clear=all] {
     clear: both;
   }

(Other than the minor issue that for backwards compatability, the both
value for clear should actually clear the _bottom_ of the <br> and not the
top, like the rules above do.)

-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Sunday, 18 February 2001 04:09:45 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:08 GMT