You are here: Re: EI 6.0 doesn't like my idea for borders « HTML « IT news, forums, messages
Re: EI 6.0 doesn't like my idea for borders

Posted by Jukka K. Korpela on 08/06/06 13:13

Steve Pugh <steve@pugh.net> scripsit:

>>> '<img ... height="100%" ...>' doesn't mean what you think it means.
>>
>> <IMG align=left alt="left bar" border=0 height="100%" hspace=0
>> src="rverticalbar.png" width=30>
>> I thought it meant 100% of the page height, (or in the case of
>> tables, 100% of the available row height)?
>
> You thought wrong. In this case it means 100% of the height of the
> image.

No, quite the contrary: the specification says that "lengths expressed as
percentages are based on the horizontal or vertical space currently
available, not on the natural size of the image, object, or applet". Ref.:
http://www.w3.org/TR/REC-html40/struct/objects.html#adef-height-IMG

Browser may do this poorly, and may even deviate from the specification (in
addition to often doing a poor-quality scaling), but that's a different
issue.

> Start using CSS and use background images instead.

That sounds like a good idea, especially for an image that is supposed to
act as just as a divider - a decorative horizontal rule, in a sense.
Actually, if such a divider is the most prominent graphic feature of a page,
the design is somewhat odd, and removing the divider or replacing with a
simple styled <hr> might be an improvement.

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

 

Navigation:

[Reply to this 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

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