.red { background: red } .black { background: black; padding: 0 !important } .green { background: green } div { padding: 10px; height: 100vh } form { background: blue; padding: 5px; position: fixed; bottom: 0; width:inherit }
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" /> <div class="container-fluid"> <div class="row"> <div class="col col-xl-3 col-lg-3 col-md-12 col-sm-12 col-12 red"> Текст </div> <div class="col col-xl-6 col-lg-6 col-md-12 col-sm-12 col-12 black"> Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text <form>Форма ввода</form> </div> <div class="col col-xl-3 col-lg-3 col-md-12 col-sm-12 col-12 green"> Текст </div> </div> </div>
In the container there is an input form. The length of this form inherits the length of the parent, but only in the code. Actually transcends.
This is due to the fact that the form has position: fixed. Without it, everything is fine. How to fix?