E
E
eugene1122018-02-11 01:16:43
css
eugene112, 2018-02-11 01:16:43

How to implement a block wider than .container?

Good evening, I'm just learning layout and in my second project I came across such a layout, everything is quite simple, except for the block with a green background, the buttons for switching the carousel are located at the edges of the layout (its width is 1920px), behind the width of the grid, as in this case describe such a block? After all, on devices with a display width of less than 1920px, the buttons will not fit on the page? It is also interesting how this is solved when using Bootstrap.
5a7f6f03bf33a991509701.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Neyury, 2018-02-11
@eugene112

<header>
    <div class="wrapper">
        контент
    </div> 
</header>
<div class="green">
    <div class="wrapper">
        контент
    </div> 
</div> 
<div>
    <div class="wrapper">
        контент
    </div> 
</div>

.wrapper{
    width: 1200px;
    margin: 0 auto;
}

E
eugene112, 2018-02-11
@eugene112

Everything turned out to be much easier than you could imagine, thanks for the answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question