Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question