Answer the question
In order to leave comments, you need to log in
How can you go beyond the Bootstrap container?
Hello. We need to make a background that starts at the left border of the bootstrap container, extends beyond the border of the container to the right to the edge of the page. Tell me, is it right to do it this way: assign the container :after, absolutely position it, and set the following parameters left: 0, right: -9999px? And apply overflow-x: hidden to the body? Or is there a more elegant way?
Answer the question
In order to leave comments, you need to log in
a more elegant way is to split the container.
<div class="container">111</div>
<div class="your-div">111</div> //блок будет шириной в 100%
<div class="container">111</div>
<div class="container">
<!-- Content here -->
</div>
<div class="container-fluid">
...
</div>
<div class="container">
<!-- Content here -->
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question