You are here: Re: Centre an image in a <div> « HTML « IT news, forums, messages
Re: Centre an image in a <div>

Posted by Vince Morgan on 11/16/06 08:16

"K A Nuttall" <keith@yammer.coedotyoukay.invalid> wrote in message
news:Xns987D4F4199F31KeithYammer@212.23.3.119...
> Vince Morgan wrote:
>
> > I have been trying to centre an image horizontaly
> > (external css)
> > within a <div>, without setting explicit XY values, but cannot get
> > it to work in either IE6 or the latest Mozilla.
>
> Are you sure the DIV is taking the full width (ie not floated or sized
> down)? Otherwise using text-align:center on the DIV should do it.

Nope, it's not full width, and it is floated. I'm guessing that's not a
good thing?
Thanks,
Vince

 

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

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