You are here: Re: Why this "text-align" doesn't work? « HTML « IT news, forums, messages
Re: Why this "text-align" doesn't work?

Posted by Ben C on 01/12/07 23:48

On 2007-01-11, Jukka K. Korpela <jkorpela@cs.tut.fi> wrote:
> Scripsit Andy Dingley:
>
>> Johnny wrote:
>>
>>> Do you mean that if an inline element is contained in a block
>>> element, the "text-align" won't take effect?
>>
>> How could it? What does "alignment" mean to something that's inline
>> and thus doesn't have the right sort of "box" to align things into?
>
> Of course it _could_. An inline element _could_ have a width wider than
> needed for its content, and its content might be aligned within that box.

That's pretty much exactly what an inline-block 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

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