Cannot remove margin between very top and navbar #817
|
Hey guys, I'm a beginner in frontend development. I want that my navbar has 0 margin to the top, but there is some. Also it doesn't span the full width. Even though I set width to 100 in both elements. In my wrapping container I have margin 0, as well as in the navbar. How do I control this distance between the top and the navbar? |
Answered by
tianenpang
Oct 12, 2022
Replies: 1 comment 9 replies
|
Hi @yvesbou please check the For the gap at the top, check if it's caused by the parent element 🤔 Here's an example: codesandbox.io/s/nextui-discussion-817-fmp0sk |
9 replies
Answer selected by
yvesbou
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Hi @yvesbou please check the
maxWidthprop in theNavbardocs, when settingmaxWidthtofluidthe navbar will fill up the width of the screen.For the gap at the top, check if it's caused by the parent element 🤔
Here's an example: codesandbox.io/s/nextui-discussion-817-fmp0sk