|
Posted by Ed Jay on 10/02/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)
Navigation:
[Reply to this message]
|