Forum Moderators: not2easy

Message Too Old, No Replies

Easy floating <div> question

I just can't remember for the life of me

         

mcvoid

1:00 am on May 1, 2006 (gmt 0)

10+ Year Member



Hello, all. Just a simple question:
How do I get a relatively-positioned floating <div> to fill to the entire height of a parent container, so that the main content doesn't flow under the bottom of the floating part and stays where it's put?
I don't want to move the position of the main content- everything else is relative and it will screw up on a small viewport.

mcvoid

11:30 pm on May 1, 2006 (gmt 0)

10+ Year Member



No reply? That's too bad. Usually you guys are quick with an answer.

londrum

9:07 pm on May 3, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i'm not sure you can do that so simply.

if it is inside another container, then you could apply a padding to the lefthand-side of the container so that the main content cannot flow in there, and then position your div absolutely, so it appears inside that blank space.