>> I have two divs. The left div is floated left and the right div is floated
>> right. If the left div contains a single line, the left and right divs are
[quoted text clipped - 15 lines]
>
>clear: left and margin-top: -1.1em on the right hand div.

Signature
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info
>>> I have two divs. The left div is floated left and the right div is floated
>>> right. If the left div contains a single line, the left and right divs are
[quoted text clipped - 19 lines]
>
> Your solution almost worked, but the lines didn't quite align.
I thought you might ask that.
> Ended up with setting the right margin to +1em, without the clear
You mean the top margin on the right div :)
> left, and it lined up OK. This works fine for two lines of content,
> but what if the content occupies three or more lines?
Better to go with the original negative margin, but also set line-height:
1.1em on the right div.
Ed Jay - 27 Aug 2008 17:47 GMT
>>>> I have two divs. The left div is floated left and the right div is floated
>>>> right. If the left div contains a single line, the left and right divs are
[quoted text clipped - 25 lines]
>
>You mean the top margin on the right div :)
Yup. :-)
>> left, and it lined up OK. This works fine for two lines of content,
>> but what if the content occupies three or more lines?
>
>Better to go with the original negative margin, but also set line-height:
>1.1em on the right div.
I finally grasped the logic. Because of a 5px bottom margin on both divs, I
ended up with clear:left;margin-top:-0.5em; Works great. Thanks.

Signature
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info
Ed Jay - 27 Aug 2008 17:59 GMT
>>>>> I have two divs. The left div is floated left and the right div is floated
>>>>> right. If the left div contains a single line, the left and right divs are
[quoted text clipped - 36 lines]
>I finally grasped the logic. Because of a 5px bottom margin on both divs, I
>ended up with clear:left;margin-top:-0.5em; Works great. Thanks.
Errr....time for more coffee. I meant -1.5em.
Thanks again.

Signature
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info
Ben C - 27 Aug 2008 19:22 GMT
[...]
>>I finally grasped the logic. Because of a 5px bottom margin on both divs, I
>>ended up with clear:left;margin-top:-0.5em; Works great. Thanks.
>
> Errr....time for more coffee. I meant -1.5em.
That only works though if 0.5em = 5px, i.e. the font-size is 10px. Users
often override the font-size even if you set it, especially if you set
it to something as small as 10px.
Specifying the bottom margin as 0.5em will be more robust.
Ed Jay - 27 Aug 2008 19:33 GMT
>[...]
>>>I finally grasped the logic. Because of a 5px bottom margin on both divs, I
[quoted text clipped - 7 lines]
>
>Specifying the bottom margin as 0.5em will be more robust.
I'm one step ahead...already changed the bottom margin to .5em. :-)

Signature
Ed Jay (remove 'M' to reply by email)
Win the War Against Breast Cancer.
Knowing the facts could save your life.
http://www.breastthermography.info