Answer the question
In order to leave comments, you need to log in
How to properly nest blocks in each other when laying out?
Why, for example, when laying out a certain page element, for example header, do the following block structure:
<header>
<div class='container'>
</div>
</header>
Answer the question
In order to leave comments, you need to log in
It is considered good practice to separate grid blocks from all others.
Page blocks usually take up the full width of the screen and have a full width background. And the content is limited in the center by the same container.
If the block does not stretch to the full width, then it is already in the container.
<div class='container'>
<div class='header'>
</div>
</div>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question