You are here: Re: Centering div « HTML « IT news, forums, messages
Re: Centering div

Posted by David Dorward on 02/16/06 20:49

"H. Mäki" wrote:

> Can I center div-tag somehow if I want to define div width in pixels?

http://dorward.me.uk/www/centre/

> If I define left, right and width in percents it works, but then I can't
> define minimum width? (what "min-width" does anyway?)

Min-width, which is not supported by IE, defines a minimum width and takes
priority over the width property. For example:

width: 20em;
min-width: 150px;

Would create an element 20em wide, unless the font was small enough that
20em was less than 150px, in which case it would be 150px instead.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is

 

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

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