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?
|
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
Hi @yvesbou please check the
maxWidth
prop in theNavbar
docs, when settingmaxWidth
tofluid
the 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