I use bootstrap 3 versions. There was an incomprehensible indent on the right.
Maybe someone came across?
Here is the screen:
Here is the link to the full screenshot of the page.
I use bootstrap 3 versions. There was an incomprehensible indent on the right.
Maybe someone came across?
Here is the screen:
Here is the link to the full screenshot of the page.
Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
Having carefully looked at the layout, I realized that the problem is not in it.
The fact is that in Bootstrap from version 3.x to 3.1 there was no class .container-fluid .
I think that's why .row with its negative margins, is pushing your laid out layout wider than you expect. Hence the horizontal scroll bar and extra indent.
Connect the current version of Bootstrap (or at least version 3.1 or .container-fluid ) to use the class .container-fluid or add the following style:
.container-fluid { margin-left: auto; /* не обязательно */ margin-right: auto; /* не обязательно */ padding-left: 15px; padding-right: 15px; } to fix the problem you described.
Here is a demonstration of the problem in the Bootstrap version from 3.x to 3.1 :
.demo { background-color: rgba(65, 180, 135, .3); margin-top: 60px; overflow: auto; padding: 15px; } .container-fluid { background-color: rgba(195, 180, 10, .3); border: 1px solid yellow; line-height: 30px; } <link href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet" /> <div class="demo"> <div class="container-fluid"> <div class="row">Некий текст</div> </div> </div> And since version 3.1, there is no problem:
.demo { background-color: rgba(65, 180, 135, .3); margin-top: 60px; overflow: auto; padding: 15px; } .container-fluid { background-color: rgba(195, 180, 10, .3); border: 1px solid yellow; line-height: 30px; } <link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet" /> <div class="demo"> <div class="container-fluid"> <div class="row">Некий текст</div> </div> </div> Update:
After the layout was sent, I see the problem in the following
.img-responsive class. They have a width greater than the width of the wrapper. Now the pictures stretch the layout..right_top_header class, using !important you removed the padding on the left and the right, but you use the .row class .row , which due to a negative margin goes beyond the boundaries of the block and stretches the layout.next and previous , but did not stylize them. Perhaps after correcting the style of the pictures they will fall into place, but pay attention to them anyway.Source: https://ru.stackoverflow.com/questions/494965/
All Articles
.container-fluidforgotten.row- VenZell