Reply to Re: CSS attributes for <hr>

Your name:

Reply:


Posted by Jukka K. Korpela on 02/24/07 21:31

Scripsit Jonathan N. Little:

> Jukka K. Korpela wrote:
>> Scripsit Jonathan N. Little:
>>
>>> Because "color: red;" means the text color is red, but the HR
>>> element does not contain any text so it means nothing.
>>
>> That might be the logical view, but browsers take different views on
>> it. See what happens (e.g. on IE 7) if you set hr { border: none; }.
>> There is still something - the horizontal rule.
>
> That's because MS will *never* let you get rid of the damn border on
> HRs!

I'd rather say that MS does not let you remove the _content_ of <hr>.

Try this on on IE 7:

hr { height: 0px;
color: blue;
background: red;
border: green 0px none; }

You'll see a blue 1px horizontal line. It seems that you cannot remove it
without removing the <hr> as a whole (display: none), but you can set its
color and height (though you can't make the height zero).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

[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

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