I want to have a dynamic height div inside another wrapper, which always fill parent container, and auto shrink its size with displaying a vertical scrollbar for user to scroll should overflow happens.
Illustration below is what I'm expecting:
Currently the content pane just overflow the wrapper and pushing footer pane out of sight too.
Fiddle here http://jsfiddle.net/WWcAz/1/
#wrapper{
padding: 10px;
vertical-align: middle;
background-color: cyan;
min-height: 100px;
height: 300px;
max-height: 300px;
}
#dynamic{
background-color: green;
overflow: auto;
overflow-x: hidden;
min-height: 40px;
}
Is this possible with pure CSS?
(** Update:) I do not want any scrollbar with my wrapper, and wrapper has to be fix size, hope this is clear - thanks :)