Vertical scrollbar in DIV in ASP.NET

Asked

Viewed 142 times

0

I have a form inside the masterpage content2. Is it possible to place it inside a div with a scrollbar in the vertical that descends only the form in question? What’s the simplest way to do that?

1 answer

0

This is Bruno, blz?

Man, 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>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.