Thank you for all your responses. I will keep these css hr set
aside, but I think I'm changing the doctype to xhtml transitional
instead of strict, because I have only started to convert this site to
CSS and there are far too many issues that will come up with XHTML
strict. Thanks for that
I am converting a site with an older doctype to xhtml strict, not live.
Throughout the older site I have always used for a rule: hr size=1 noshade
Although hr size=1 noshade seems to view correctly in all browsers
that we support using xhtml strict doesn't validate.
I also tried this version
Nancy Johnson wrote:
I am converting a site with an older doctype to xhtml strict,
That's usually non-constructive and much more trickier than people think. To
begin with, an old site very often relies on Quirks Mode features, which
means that you have an unknown but large number of problems
As luck would have it, I just researched this issue yesterday. Not so
much the way your current code reads, but just how to style an hr /
with CSS in general. The one I found which seems to work well on my
tests across Firefox, Safari, and Internet Exploder 6 and 7 is
something like:
hr
Chris Akins wrote:
I can't tell you why the clear:both and height:0 needs to be in
there. I haven't tested it without those things. Perhaps someone
here can shed some light on those details.
Maybe this answers some of your questions...
http://www.gunlaug.no/contents/wd_chaos_30.html
See
On Sep 26, 2008, at 12:07 PM, Chris Akins wrote:
hr
{border:1px solid rgb(203,204,220);
border-width: 1px 0 0;
clear: both;
margin: 15px 15%;
height: 0;
}
I can't tell you why the clear:both and height:0 needs to be in
there. Perhaps someone here can shed some light on those