Reply to Re: Question: Aligning an image + text

Your name:

Reply:


Posted by Jonathan N. Little on 01/26/06 17:58

David Graham wrote:

>>CSS:
>>.pixboxleft IMG {
>>display: block;
>>}
>
>
> Hi
> I understand your css OK but what is the display: block; for?
> I commented this out and it doesn't seem to do anything. Why can't the img
> element remain an inline element?
> thanks
> David
>
>
>
Because images are displayed inline by default, if you do not explicitly
set the width of the containing block element and with viewport is is
wide enough the text will not wrap under image

+------DIV-------+ The rest of
|[ IMAGE ] text | your page
+----------------+ content ...

Image as block

+----DIV--+ The rest of your
|[ IMAGE ]| page content ...
| text |
+---------+


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

[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

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