Posted by charles cashion on 02/22/07 19:27
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; }
-->
</style>
</head>
<body>
<p>this is some text</p>
<hr>
This code combination DOES give red horz rules...
This code segment is http://dunjas.com/works.html
<html>
<head>
<title>works.html</title>
<style>
<!--
hr { width:80%; } /* color:red; removed */
p {margin-left: 20px; margin-right: 20px; }
-->
</style>
</head>
<body>
<p>this is some text</p>
<hr color=red>
<p>this horizontal rule is 80 percent width and color red. </p>
<hr color=red>
<p>this horizontal rule is here to keep the first one from becoming
lonely.</p>
</body>
</html>
The problem must be hidden in this line...
hr { width:80%; color:red; }
Thanks,
Charles
Navigation:
[Reply to this message]
|