D
D
Dmitry Quick2020-05-11 17:41:48
css
Dmitry Quick, 2020-05-11 17:41:48

Why doesn't container work?

I created a section block, then a container block, but the page width is still stretched to the entire monitor. What could have caused this? In the previous project, container worked and was 1140px, but now its width is 1264px.

Here is a piece of code:

<section class="promo">
        <div class="container">
            <div class="promo__logo">
                <img src="icons/main_logo.png" alt="">
            </div>
        </div>
    </section>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
approximate solution, 2020-05-11
@dmitryUD

https://codepen.io/approximate_solution2k20/pen/wvKXGJG
Compare your container styles with mine, if you don't find the error yourself, drop the css styles, or a screenshot of the container in devtools. Or a link to a website.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question