W3C home > Mailing lists > Public > www-html@w3.org > August 2002

Re: In support of the "line space" (nee <hr>)

From: Bill Daly <billdalynj@yahoo.com>
Date: Wed, 21 Aug 2002 10:50:51 -0700 (PDT)
Message-ID: <20020821175051.5902.qmail@web13001.mail.yahoo.com>
To: www-html@w3.org


--- Toby Inkster <tobyink@goddamn.co.uk> wrote:
> On Wed, 21 Aug 2002 17:19:49 +0200
> Lorenzo De Tomasi <lorenzo.detomasi@libero.it>
> wrote:
> 
> | How can I make a border that is 50% of the page
> and centered?
> | and 50% of the page and left aligned?
> 
> This is in XHTML 1.1 and according to the draft of
> XHTML 2, should be valid there as well. It's not
> pretty though! (Tested in Opera 6.03, Mozilla 1.1b)
> 
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
>  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xml:lang="en-GB">
>   <head>
>     <title>Example</title>
>     <style type="text/css">
>       div.centreRule { border-top: 3px solid black;
>                        width: 50%; position:
> absolute; left: 25%;}
>       div.leftRule   { border-top: 3px solid black;
>                        width: 50%; position:
> absolute; left: 0%;}
>     </style>
>   </head>
>   <body>
>     <p>Here is some text followed by a centred
> division.</p>
>     <div class="centreRule"></div>
>     <p>Here is some text followed by a left
> division.</p>
>     <div class="leftRule"></div>
>     <p>And here is some more text.</p>
>   </body>
> </html>
> 

But is that a solution or a hack?

Bill Daly

__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
Received on Wednesday, 21 August 2002 13:50:54 GMT

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