I’m wondering if there is any solution for my problem. I have a content-div and a menu-div. The more text there is in the content-div the more it expands. I want my menu-div to follow the content-div as it expands/collapses.
I’ve tried everything I could think of, but since I’m a beginner maybe I’ve missed something simple. I haven’t found anything on google, only JS-solutions but there have to be a CSS solution to this right?
Heres a fiddle with code: http://jsfiddle.net/YxF9e/
Thanks in advance.
I don’t think it’s possible to do it with CSS only.
You could have an imaginary height of the right sidebar by adding background image to the wrapper. This could give the impression that the border goes 100% height.
If you want to do this with jQuery, here’s the code you need:
Here’s the updates jsFiddle: http://jsfiddle.net/peduarte/YxF9e/1/