You are here: Re: how to center text in css ? « HTML « IT news, forums, messages
Re: how to center text in css ?

Posted by richard on 09/22/06 03:15

"Jonathan N. Little" <lws4art@centralva.net> wrote in message
news:7f2c8$451341a7$40cba7ac$28982@NAXS.COM...
> richard wrote:
>> Actually, I need to know how to put the text in the middle of the
>> division.
>> As I did with tables.
>> Vertical-align doesn't seem to be recognized.
>>
>> www.1-small-world.com/index2.html
>>
>
> Look it up for yourself and see why...
>
> http://www.w3.org/TR/CSS21/propidx.html
>
> property: 'vertical-align'
> applies to: inline-level and 'table-cell' elements
>
> DIV is neither. You can set DIV to "display: table-cell;" ...but guess
> what? You guessed it, it will not work in IE. Other options are padding
> and line-height all a bit messy.
>

Well check this out then

http://www.wpdfd.com/editorial/thebox/deadcentre4.html

Works good in both IE and FF.

 

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

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