Link to the website: https://jsfiddle.net/L84vhah9/
Now go into the CSS, go all the way down to .box
and change the margin: 0 auto;
to margin: 2% auto;
Then check the website again. See how the whole section
moves/gets the margin instead of just the box
. It creates a space between the nav
and section
.
Why is this happening?
Shouldn't just the .box
get the margin? I don't understand why <section>
gets it.