Vertical Scrollbar in DIV in ASP.NET

0

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?

    
asked by anonymous 15.10.2017 / 02:11

1 answer

0

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>
    
19.10.2017 / 19:56