You are here: Re: images always in the same line (like word-wrap) « HTML « IT news, forums, messages
Re: images always in the same line (like word-wrap)

Posted by Joel Shepherd on 05/05/07 01:49

In article <slrnf3ncv3.j2o.spamspam@bowser.marioworld>,
Ben C <spamspam@spam.eggs> wrote:

> On 2007-05-04, ffreino@gmail.com <ffreino@gmail.com> wrote:
> > Hi,
> > This is a tricky problem (at least for me) I would like to print a
> > movie title and then its score using stars (img tags)
> >
> > The problem arise when there is no width enough to print the whole
> > line, so it prints:
> >
> > Spiderman 3 * * *
> > * *
> > The Shining * * *
> >
> > 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. If you use "*" as alt text, you might still want to use the
CSS hint, but the image itself won't be wrapped across lines.

--
Joel.

 

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

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