DIV fixed + DIV automatic scrolling

Asked

Viewed 579 times

0

I’m doing a little chat, and I’m having problems with the scroll bar. I want the scroll in the main, not in the iframe.

Imagery:

inserir a descrição da imagem aqui

HTML:

  <div class="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>
  • Hello Marconi. Thank you for answering. : ) https://jsfiddle.net/28myouf2/ follow css.

1 answer

2

By default, the overflow starts with the value Visible.

Try this: (hide the scroll)

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

Remove height="1000px chunk".

And add that to your css:

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

What we did was:

set a minimum frame size(if you want) and leave the maximum automatic size, with the snippet height:auto;

  • 1

    right. try this friend: scrolling="no".

  • Geovane, I finished deleting instead of editing the above comment. sorry. I just scrolled="no" and it worked perfectly. thank you so much for sharing!!!! :)

  • 1

    @If any of the answers is valid, consider validating it by clicking on the green icon below the validation arrows...

  • Magic, green arrow does not appear. = put as useful answer! :)

  • 1

    For nothing friend ;). Remembering that scrolling="no" will only work in some browser. So it is interesting that you keep both solutions.

  • @Joaomarcos goes with the mouse that will appear...

  • 1

    @Don’t forget to mark the answer as correct. Because it can help others as well.

Show 2 more comments

Browser other questions tagged

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