Re: centering a horizontal rule

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