Underneath the button that we added in the last lesson:
Here is the final preview:
If you notice the above screenshot, there is no space between the button and the small paragraph that follows it.
But if you look at the Block Editor, there is an ample amount of space between them:
The reason behind this is pretty simple.
The Block Editor adds spacing between the blocks so that we can:
This also tells us that we should check the preview every time we make a change inside the Block Editor.
Get into this habit, and it saves you a lot of time.
Using the “Spacer” block, add 20px of space between the button and the small paragraph.
Sometimes, the default spacing between the two blocks is not enough.
So, we need to manually add the required space using the “Spacer” block.
Did you see that?
Using the “Spacer” block is the same as using any other block.
Here is a preview of the solution:
Looks neat, right?
But I can see one other problem, though.
The Hero section’s background image does not occupy the entire browser width.
And here is how we can fix it…
To achieve this:
And here is the final preview for this lesson:
Did you see that?
The Hero section now looks fantastic, isn’t it?
But there is one minor disturbance, and we will fix it in the next lesson.