Positioning divs inside a container div without the content of an upper div affecting the position o
Posted
by silverCORE
on Stack Overflow
See other posts from Stack Overflow
or by silverCORE
Published on 2010-04-01T23:58:23Z
Indexed on
2010/04/02
0:03 UTC
Read the original article
Hit count: 407
Hi.
I'm trying to accomplish the following layout,
and I'm almost there, except for the last green div, which is going lower and lower depending on the content of the content (white) div. If I set a value for the TOP property for the green div, and then I add some more text to the content div, the green div goes lower and lower.
Since the green div is child to the main container div, and the green div is relatively positioned, isn't it supposed to be placed specifically at the position indicated by the TOP value of it? If I'm incorrect...can someone please tell me how can i make it so that the green div is always displayed at the same spot within the container (gray) div, regardless of the height of the content/white div?
I tried to paste the css code here but was having problems with the brower. you can see the test site source/css at http://www.rae-mx.com/test
tia for the help.
© Stack Overflow or respective owner