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]
|