Log in

View Full Version : overflow widthout explicitly specifying dimensions



ItsMeOnly
08-15-2006, 04:20 PM
here's my http://rambo.id.uw.edu.pl/viewer.html again

I have a "frame" with height of 100%, and want to embed another div or image that exceeds the size of "frame"'s parent- unfortunately, setting overflow
seems to be working in explicit pixel/point dimensions only. Is there a way to make overflow property working without that?

ItsMeOnly
08-15-2006, 09:53 PM
the solution towards my problem was astonishing in simplicity and elegance:

#imgFrame {
height: 0;
min-height: 100%;
overflow: auto;
}

not only that fills in the height propely, but also seems cross-browser compatible.