Moving Div(links for articles, about mental illness), stop when parrent div ends.
Hi,
Got a problem here i know how to make a floating div.
- <style type="text/css">
- #banner {
- position: fixed;
- width: 600px;
- height: 80px;
- bottom: 10px;
- left: 50%;
- margin-left: -300px;
- background: red;
- }
- </style>
- <div id="banner"></div>
- <div style="height:2500px;width:100px;background:yellow">Højt indhold</div>
But my problem is that i want to make this div stop when hitting my fotter div, so the links for some articles about mental illness, we want to focus on, dont go down inside the fotter, but stops ad the edge of the footer.
I am not totaly sure how to do this.
The floating div shut be locked to the bottom of the screen, since it has to be none intrusive, but still make peopel se the links.
Can someone help me out here?