Reply to Re: Now take a look...

Your name:

Reply:


Posted by Ed Jay on 09/29/45 11:24

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

>Previously in alt.html, Ed Jay <edMbj@aes-intl.com> said:
>
>> OK, I came up with the following 'solution' that does what I want, a
>> centered line of two single words--one to the left and one to the right,
>
>It shouldn't. Not in a behaving browser, anyway. Let me guess, you're
>testing in IE, with no doctype?

Actually, I was testing in Homesite's built-in browser. It didn't work in
Opera.
>
>> but it seems terribly clumsy. Can it be simplified?
>
>Eek! That *is* dreadful.

I think we think alike. :-)
>
><div style="float: left; width: 49%;">Test 1</div><div style="width:
>49%; text-align: right;">Test 2</div>

Thank you very much. I want 'Test1' to align left, and I'd like the entire
line to be narrow. I defined a box as follows:

..menu2 {
margin-left: auto;
margin-right: auto;
width: 400px;
text-align: center;
}

My ensuing total code looks like:

<div class=menu2><div style="float: left; width: 49%; text-align:
left;">Test 1</div><div style="width: 49%; text-align: right;">Test
2</div></div>

It works in Opera, Firefox and IE. Is there anything "CSS illegal" about
what I ended up with?

Thanks again, and BTW, sorry about sending the above via email. It was a
slip of the keyboard

Ed Jay (remove M to respond)

[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

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