I’m trying to put a lot of content in “Thickbox” (Javascript popup window) and it works almost fine but I can’t make max-height: 100%; (relative to parent) and overflow-y: scroll; work.
There are two outcomes:
- It is as long as it should be, without vertical scroll and it goes outside the box (far too much).
- It is as long as it should be, with vertical scroll and it goes outside the box (a little bit).
I just want to have it inside the box, with vertical scroll and I don’t want it to go outside the box. Once you’ll take a look at JSFiddle you’ll know what I mean: http://jsfiddle.net/m4aKk/ (best viewed on large screen – 1600px+). Any advices would be great!

Why height: 100%; or max-height: 100%; aren’t relative to its parent?
A solution is to make the inner box position
absolute. Something like this:This should make the inner div position the way you like it. Here’s the updated fiddle – note I’ve removed
height:auto; height:100%from the inlined style.This is quite a common trick to get the inner div to ‘be as tall as the parent’.