Lestat Posted June 12, 2006 Share Posted June 12, 2006 I'm having problems coloring my HRs. If I use the color attribute in the HR tag, I get a validation error (color attribute is deprected in XHTML). This is the code I used: <hr color="#...." /> So, I tried CSS, and so far I have not been able to find any way of coloring an HR! I tried MSDN and all the acceptable CSS properties don't have anything to do with color? What do I do? Is there a way around this? Link to comment Share on other sites More sharing options...
aspnetguy Posted June 12, 2006 Share Posted June 12, 2006 HTML <hr class="hrcolor"/> CSS .hrcolor{ color:#000;} Link to comment Share on other sites More sharing options...
scott100 Posted June 12, 2006 Share Posted June 12, 2006 What do I do? Is there a way around this?See this example: http://www.w3schools.com/myfirst/tryit.asp...=myfirst_css_07This is the css to change the hrhr{color:#b22222;border:thin dotted} Hmm damn that man Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now