Reply to Re: Centre an image in a <div>

Your name:

Reply:


Posted by dorayme on 11/16/06 08:29

In article <Xns987D4F4199F31KeithYammer@212.23.3.119>,
K A Nuttall <keith@yammer.coedotyoukay.invalid> wrote:

> As the man said: let's see the code.

er... look old chap, sex is a very sensitive matter at alt.html
with so many characters of uncertain determination floating
about... but I think on this occasion, you need to revise your
remark. <g>

To the OP, understand this:

A div is by default 100% of its container wide. If it is an image
that is 500px wide you want to centre, no problems (cough,
cough), just make the div as wide as the image or a bit bigger
(for borders, captions, whatever)

width: 520px;

and try

margin-left: auto;
margin-right: auto;

--
dorayme

[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

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