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 Johnny on 01/11/07 11:28

Do you mean that if an inline element is contained in a block element,
the "text-align" won't take effect?

Adrienne Boswell wrote:
> Gazing into my crystal ball I observed "Johnny" <johnnylee194@gmail.com>
> writing in news:1168496741.406019.138990@77g2000hsv.googlegroups.com:
>
> > I have the following code:
> >
> ><p style="text-align: center">center-text<br/>
> ><i style="text-align: right">right-text</i></p>
> >
> > but the right-text doesn't align to right as expected. Could anybody
> > help me out?
> >
> > Regards,
> > Johnny
> >
> >
>
> P is a block element, I is inline.
>
> --
> Adrienne Boswell at Home
> Arbpen Web Site Design Services
> http://www.cavalcade-of-coding.info
> Please respond to the group so others can share

 

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

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