andybrewer / mvp

MVP.css — Minimalist classless CSS stylesheet for HTML elements
https://andybrewer.github.io/mvp/
MIT License
4.98k stars 192 forks source link

Unused empty space ? #84

Closed devnewton closed 2 years ago

devnewton commented 2 years ago

How to avoid having a large empty space between header and main content ?

image

andybrewer commented 2 years ago

That large space is by default. The <nav> tag has margin-bottom: 7rem: https://github.com/andybrewer/mvp/blob/master/mvp.css#L142

You can create a custom style like <nav style="margin-bottom: 3rem">, or overwrite the style globally by including your own CSS stylesheet where you define the nav style as you like.