Re: Positioning a floated element to bottom
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.
|