Child height to be 100% of scrollable parent content height
Please consider this fiddle: http://jsfiddle.net/eKJAj/ I'm trying to have an absolute positioned div (the red line) to take the whole height of the total height of its (yellow) parent ; not just the parent's visible height. If you try the fiddle you'll see the red bar doesn't go the whole way down when you scroll the yellow div. Also it can't be bigger than its parent if some blue sections are removed. html: <div class="parent"> <div class="bar"></div> <div class="section"></div> <div class="section2"></div> <div class="section2"></div> <div class="section2"></div> <div class="section2"></div