[Vuejs]-Parent navbar in html css taking more space than children do

1👍

This happen because ul element with links has default top and bottom margin. To change this you can reset margin for this ul:

ul.nav__wrapper {
  margin: 0;
}

If you just starting this project, a good idea is add some CSS rules to reset default browser behaviors, for example to reset margins some browsers add to ul elements by default. Thanks to this you will have more control over CSS styles.

👤qiqqq

Leave a comment