Hi,
please have a look here (make sure to lower your volume, this disgusting sound wasn't my idea...).
I am trying to get the yellow box to the bottom of the blue box. The red and blue boxes always have the equal height and I want to stick the yellow right on top of the footer but under the end of the content of the blue one.
As long as the blue one is the box that decides the height (i.e. its height is bigger than the red one's), this is no problem by just placing the yellow bow inside the blue box (at the end of it).
But, as the red one is the higher one, there has to be a space between the end of the content of the blue box and the beginning of the yellow box.
To make a long story short: I need to have the yellow box at the bottom of the blue box.
What I tried:
- setting the blue box to position:relative and the yellow box to position:absolute,bottom:0px -> The yellow box sticks to the bottom of the viewport; as the blue box becomes higher than the viewport, the yellow box doesn't follow up.
- placing the yellow box in the footer with a negative margin -> the yellow box overlaps possible content in the blue box
This all seems such an easy operation - Do you have any idea?
Thanks!