View Single Post
  #8 (permalink)  
Old 08-28-2008, 02:09 AM
Ed Jay
Guest
 
Posts: n/a
Diggs:
Default Re: Positioning a floated element to bottom

Ben C wrote:

>On 2008-08-27, Ed Jay <edMbj@aes-intl.com> wrote:
>[...]
>>>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.


I'm one step ahead...already changed the bottom margin to .5em. :-)

--
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
Reply With Quote