You are here: Re: Now take a look... « HTML « IT news, forums, messages
Re: Now take a look...

Posted by Ed Jay on 08/18/05 11:20

Mark Parnell <webmaster@clarkecomputers.com.au> wrote:

>Previously in alt.html, Ed Jay <edMbj@aes-intl.com> said:
>
>> I'm having a heck of a time figuring out how to center text or boxes.
>
>http://dorward.me.uk/www/centre/

Thanks, Mark. That was a great help.

Allow me to impose and ask another question. I'm trying to center a box
with text aligned both left and right. Example:
Test1 Test2

I defined a simple box as:

..menu {
border: 1px solid black;
margin-left: auto;
margin-right: auto;
width: 300px;
}

The code on my page is:

<div class=menu style="text-align: left;">Test1<div
style="text-align:right;">Test2</div></div>

The result is:

Test1
Test2

Why?

Ed Jay (remove M to respond)

 

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

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