How can I hide navbar and footer on a page while having full content in every window screen width? #17156
Unanswered
EllyFodorDesign
asked this question in
Q&A
Replies: 1 comment
-
|
Hi @EllyFodorDesign ! To achieve a full-width layout without the Navbar and Footer on a specific page, you have two main approaches. Since you are using a Layout.tsx wrapper, the cleanest way is to use Conditional Rendering based on the current route. If your screen is limited to 1200px, it’s likely that a parent container has a max-width or padding. You can override this in your styled-components: Tip: Make sure that in your App.tsx or global styles, there isn't a wrapper div constraining the width of the entire application. Hope this helps! Let me know if you need more details |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
with my page inside hiddenpath, the screens width is limited to ca 1200px. Tried to remove 90% limit on components, did not change it.
Layout.tsx
Hometest.tsx
styled-components.tsx
[FooterLanding.tsx](https://github.com/user-attachments/files/22
[Navbar.tsx](https://github.com/user-attachments/files/
App.tsx
22928413/Navbar.tsx)
928410/FooterLanding.tsx)
Beta Was this translation helpful? Give feedback.
All reactions