Mike Morris wrote:
> I am trying to use horizontal rules of specific width and position in an
> xhtml strict 1.0 web page.  The width and align attributes work, but do not
> pass the strict 1.0 validation test (as you probably know).


When validating the <hr> element with XHTML 1.0 Strict, you must code it 
this way.

<hr />

As per the grammer of XHTML for empty elements.


> I have tried using both class and id statements in a CSS file (with
> appropriate selectors in the body).  Neither work.  I have performed
> extensive searches on the internet (including the archives of this list),
> but I have found no information on how to accomplish the desired task.


May I inquire what is the desired task? Do you have a test page?


> Is it not possible to set these hr parameters under strict 1.0 (and have
> them pass the validation test)?  If not, is there an alternative?
> 
> I need to say that I have only a beginner's knowledge of CSS.
> 
> Thank you for your help.


BTW, there are a few bugs with <hr> styled with text-align in IE8. 
Welcome to the world of CSS (but don't forget to improve the HTML) and 
welcome to this list.


-- 
Alan http://css-class.com/

Armies Cannot Stop An Idea Whose Time Has Come. - Victor Hugo
______________________________________________________________________
css-discuss [cs...@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to