Posted by Jonathan N. Little on 02/22/07 19:55
charles cashion wrote:
>
> This combination of code does not give red horz rules
> This code segment is http://dunjas.com/fails.html
>
> <style>
> <!--
> hr { width:80%; color:red; }
> p {margin-left: 20px; margin-right: 20px; }
> -->
Because "color: red;" means the text color is red, but the HR element
does not contain any text so it means nothing. What you want to change
is the border color:
hr { border: 1px solid red; }
BTW: your do not need to "comment-hide" your STYLE element any more
<style>
<!--
...
-->
</style>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|