W3C home > Mailing lists > Public > www-amaya@w3.org > April to June 2005

Re: centering a horizontal rule

From: Irene Vatton <Irene.Vatton@inrialpes.fr>
Date: Tue, 3 May 2005 15:23:14 +0200
To: ve3ll@rac.ca
Cc: www-amaya@w3.org
Message-Id: <200505031523.15043.vatton@inrialpes.fr>

Le Dimanche 01 Mai 2005 18:36, ve3ll@rac.ca a écrit :
> http://home.cogeco.ca/~trains/rrhist.htm
> illustrates a problem with horizontal rule
> centering using auto margins

This works with the CVS version.

>
> first two are not centering, last one does center
> cuz it is nested in a div.....
>
> but the rule works for a very simple case such as:
>
>
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml">
> <head><title>Rule Test</title>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> <style type="text/css">
> hr {width:80%;text-align:center;margin:auto;
>     margin-top:10px;margin-bottom:10px;border:1px solid black}
> </style></head><body>
> <hr />
> </body></html>
> --

-- 
     Irène.
-----
Irène Vatton                     INRIA Rhône-Alpes
INRIA                               ZIRST
e-mail: Irene.Vatton@inria.fr       655 avenue de l'Europe
Tel.: +33 4 76 61 53 61             Montbonnot
Fax:  +33 4 76 61 52 07             38334 Saint Ismier Cedex - France
Received on Tuesday, 3 May 2005 13:24:50 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:33 UTC