The design I am working with calls for each Gutenberg block to have a coloured background (white in this case) with max-width: 1160px
and the content within to have max-width: 800px
and centered. Similar to the image below:
Which would need a setup like this:
<main class="site-background">
<div class="width-1160">
<p class="width-800">Some text content...</p>
</div>
</main>
At this time we are only using core Gutenberg blocks but the markup it produces is similar to the below, without the containing <div>
:
<main class="site-background">
<p class="width-800">Some text content...</p>
</main>
Is there a way to add a containing <div>
to all Gutenberg content blocks that will be safe when core updates?