Re: Aligning HR using CSS, specifically in Mozilla
by "Lisa Bradshaw" <zibbler(at)mediaone.net>
|
Date: |
Fri, 30 Nov 2001 12:57:20 -0500 |
To: |
"HWG-Techniques" <hwg-techniques(at)hwg.org> |
References: |
JaySmith mediaone JaySmith2 |
|
todo: View
Thread,
Original
|
|
Sorry 'bout that, I misunderstood. From what I've read, "text-align" is a
block level element. Maybe try something like this:
(div style="text-align:left" >(hr width="660">(/div>
That might work for you. I tried it and it worked in IE 6 & NN 4.0
Lisa
----- Original Message -----
From: "Jay Smith" <jay(at)JaySmith.com>
To: "Lisa Bradshaw" <zibbler(at)mediaone.net>
Cc: "HWG-Techniques" <hwg-techniques(at)hwg.org>
Sent: Friday, November 30, 2001 12:07 PM
Subject: Re: Aligning HR using CSS, specifically in Mozilla
> Lisa,
>
> Sorry, but there has been an understanding.
>
> There is NO text involved. It is the HR that I am trying to align.
> The only alignment method that I can see in CSS for aligning an HR is
> the text-align, even though HR is not "text".
>
> The HR is contained in BODY, nothing else -- and that IS legal
> according to my reading of the specs.
>
> I am thinking that the incorrect centering of the HR is a Mozilla bug.
>
> Jay
>
>
> Lisa Bradshaw wrote:
> >
> > Why are you trying to align text inside a horizontal rule? The text
should
> > go below the rule, not in it. Try something like this:
> >
> > p.footer {text-align: left;}
> >
> > then in the document do this:
> > (HR WIDTH="660">
> > (p class="footer" /> content of footer goes here.
> >
> > This should do the trick.
> > Note: I'm using parenthesis for those of you who get html in your
e-mail.
> >
> > Lisa
> > >
> > > In my HTML, the element looks like:
> > > <.HR WIDTH="660">
> > >
> > > In my external CSS, I have:
> > > HR {text-align: left;}
> > >
>
> --
> Jay Smith
>
> e-mail: Jay(at)JaySmith.com mailto:Jay(at)JaySmith.com
> website: http://www.JaySmith.com
>
> Jay Smith & Associates
> P.O. Box 650
> Snow Camp, NC 27349 USA
>
> Phone: Int+US+336-376-9991
> Toll-Free Phone in US & Canada:
> 1-800-447-8267
> Fax: Int+US+336-376-6750
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA