css horizontal line
-
I’m a newbie cleaning house. I’m down to my last validation error and I could use some help. The error comes from my static home page (which uses a page template called home2.php). See my home page. You can see there that I have a centered red line between statements. The fact that the line has color is what triggers the validation error:
Line 152, Column 22: there is no attribute “color”.
<hr width=”58%” color=”#cc3333″ size=”1″ /></center>After much ado, I’ve gathered that my code for the centered line needs to be in css. I tried this (in my home2.php template), but it doesn’t center in mozilla:
<p><hr style="color:#cc3333; text-align:center; height:1px; width:38%; font-size:1px; border:none;"> </p>
I also tried inserting this into my style sheet, but I’m not sure if it’s correct or what exactly to do after the insertion:
hr { text-align: center; width: 38%; height: 2px; color: #cc3333; border: none; }
Any help is greatly appreciated.
- The topic ‘css horizontal line’ is closed to new replies.