|
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]
|