Reply to Re: images always in the same line (like word-wrap)

Your name:

Reply:


Posted by Ben C on 05/05/07 09:19

On 2007-05-05, Jukka K. Korpela <jkorpela@cs.tut.fi> wrote:
> Scripsit Joel Shepherd:
>
>>>> How can I keep several images in the same line?
>>>
>>> Just set style="whitespace: no-wrap" on the container.
>>
>> Or, alternatively, use one image with five stars, one image with 4
>> stars, etc.
>
> That's the best approach, because it lets you use good alt texts that
> correspond to the _meaning_ of images, such as <img src="stars5.gif"
> alt="excellent">. Surely it is better to hear "excellent" than e.g.
> "asterisk asterisk asterisk asterisk asterisk" (or even "star star star star
> star").
>
> But if you use copies of the same image, then the _correct_ CSS rule is
> white-space: nowrap

Oops, yes it is "white-space" and "nowrap", not "whitespace" and "no-wrap".

[...]
> Alternatively, <nobr>...</nobr> could be used. It will make people who swear
> by standards upset, and it will make browsers honor the request not to break
> the line, even when CSS is disabled.

In that case why not go back to <font>, <center> etc. for when CSS is
disabled?

[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

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