fixed DIV + automatic scrolling DIV

0

I'm doing a little chat, and I'm having trouble with the scroll bar. I want the scroll to be on the main, not on iframe .

Image:

HTML:

<divclass="container-fluid">
   <div class="row">
      <div class="col-lg-12">
         <form action="chat.php" method="post">
            <div class="tudo" style=" "><iframe src="interacao.php" width="100%" height="1000px" style="border:1px red solid;" frameborder="0" ></iframe></div>
            <div class="texto" style="width:100%; "><?php require_once("writing.php"); ?></div>
         </form>
      </div>
   </div>
</div>
    
asked by anonymous 02.12.2016 / 14:07

1 answer

2

By default, the overflow starts with the visible value.

Try this: (hide the scroll)

style="border:1px red solid;overflow:hidden;"

Uncheck height="1000px".

And add this to your css:

style="... min-height:1000px;height:auto;"

What we did was:

Set a minimum size for the frame (if you want) and leave the maximum size automatically, with the height: auto     

02.12.2016 / 14:26