Forum Moderators: not2easy

Message Too Old, No Replies

Problem with absolute position

         

drarock

12:45 am on May 20, 2008 (gmt 0)

10+ Year Member



Please look at this site <>

The box of Latest News is an absolute positioned div, but as you see it screws up the footer, what can I do to fix that? Is there a way the absolute div can know where it has to start pushing the footer?.

Thanks in advanced.

[edited by: SuzyUK at 8:30 am (utc) on May 20, 2008]
[edit reason] please no personal URI's [/edit]

Setek

7:00 am on May 20, 2008 (gmt 0)

10+ Year Member



Sorry drarock, there isn't -- not with CSS.

It's absolutely positioned and that is.. well, absolute.

You'd do better floating the Latest News box, than absolutely positioning it.

If you need to keep the absolute positioning, you can set a minimum height for the box next to it (that's not absolutely positioned) so it will be the height or taller than the absolutely positioned box to its left.

Other than that, I suggest javascript -- with pretty much the same theory behind it, find out the height of the latest news block and set the height of the block next to it.

P.S.: I almost forgot! Welcome to Webmaster World :) Please check the CSS Forum's Guide to posting HTML and CSS [webmasterworld.com], which will help you out (because you're not meant to drop URIs like that :D)

[edited by: Setek at 7:01 am (utc) on May 20, 2008]