You are here: Re: How to avoid a new line after an image while using styles « HTML « IT news, forums, messages
Re: How to avoid a new line after an image while using styles

Posted by Mark Parnell on 03/09/06 05:28

Deciding to do something for the good of humanity, Stefan Mueller
<seekware-remove-@yahoo.com> declared in alt.html:

> However, if I use
> <img src = "pic.gif"><div class = "my_style"> Text</div>
> the word 'Text' is not located on the right side of the image 'pic.gif'.
> It's located on a new line.

That's because <div> is a block-level element.

> How can I set a style to the word 'Text' so that the word 'Text' is still
> located on the right side of the image 'pic.gif'?

Replace div with span.

--
Mark Parnell

Now implementing http://blinkynet.net/comp/uip5.html

 

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

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