I have a form inside the content2 of the masterpage. Is it possible to insert it inside a div with a vertical scrollbar that descends only the form in question? What is the simplest way to do this?
I have a form inside the content2 of the masterpage. Is it possible to insert it inside a div with a vertical scrollbar that descends only the form in question? What is the simplest way to do this?
Speak Bruno, blz?
Dude, I think this is a simple way to solve your problem:
.div1 {
height: 500px;
position:relative;
}
.div2 {
max-height:100%;
overflow:auto;
border:1px solid red;
}
.div3 {
height:1500px;
border:5px solid yellow;
}
<div id="div1" class="div1">
<div id="div2" class="div2">
<div id="div3" class="div3">Conteúdo</div>
</div>
</div>