I do have a div where I want a scrollbar (overflow-y: auto; height: 300px;) to appear if the text inside it is to big. However, my div already contains the property height:auto; (for some vertical alignment sake). Is there anyway I can keep height:auto and still having the scrollbar appearing when it is necessary ?
HTML:
<div class = 'valign scrollbar'>
My Text
</div>
CSS:
.valign {
height: auto;
}
.scrollbar {
height: 300px;
overflow-y: auto;
}