Reply to Re: div on side?

Your name:

Reply:


Posted by Jim Moe on 02/18/06 22:49

Steve Kostecke wrote:
>
> <div align="center" style="width: 100%">
> Some content that's centered
> </div>
>
> How exactly does one add something aligned to the right but in the same
> "row" or "line" if you will (the right align content is not under the
> centered, but to the right of it, with the centered content still being
> in center, and not pushed over or anything.
>
> So it would come out something like this:
>
> | Centered Content Right Aligned |
>
<div align="center" style="width: 100%">
<span style="float:right">Right Aligned</span>
Some content that's centered
</div>

or

<div align="center" style="width: 100%">
<span style="position: absolute; right: 2em;">Right Aligned</span>
Some content that's centered
</div>

or

<div align="center" style="width: 100%">
<div style="position: absolute; right: 2em; width: 10em">Right Aligned</div>
Some content that's centered
</div>

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

[Back to original 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

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