Reply to CSS attributes for <hr>

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация