You are here: Re: Question: Aligning an image + text « HTML « IT news, forums, messages
Re: Question: Aligning an image + text

Posted by David Graham on 01/26/06 15:33

"David Graham" <david.graham18@ntlworld.com> wrote in message
news:U%3Cf.65283$q4.32957@newsfe2-gui.ntli.net...
> > 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
>
>
>
More detail.........
The display: block does not do anything when the css is used for displaying
the image on the right. Without the display block when the div is floated to
the left, the image sits along side the text within the floated div as you
would expext. Funny thing is though, the text within the floated div always
sits below the image when the div is floated right, regardless of the
instruction display: block - why is this?
thanks
David

 

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

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