Reply to Re: CSS attributes for <hr>

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на 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

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