navbar problem #39018
Replies: 3 comments
-
see if the bootstrap classes are correct also check if there is any css file interfering |
Beta Was this translation helpful? Give feedback.
-
Example that might help: dark mode:
My Site
light mode:
My Site
|
Beta Was this translation helpful? Give feedback.
-
make sure you correctly installed bootstrap in react "npm install bootstrap" import style in main or app import 'bootstrap/dist/css/bootstrap.min.css'; import what you use: import { Navbar, Nav, NavItem } from 'react-bootstrap'; |
Beta Was this translation helpful? Give feedback.
-
I have copied this navbar from Bootstrap 5 bellow
first, I did copied this navbar from Bootstrap 4 when I paste it into my react my app The search bar didn't show right. it was showing with the home link about.......then I copied the first navbar from Bootstrap 5 but I couldn't change it from dark to light or light to dark
here in the big body, I make it light from tertiary. but the whole navbar become white and the text and links were gone.I just wanted to make my web page dark mode and then I will add a button to switch it again in light mode.
but I couldn't find any dark or light navbar on get bootstrap.....
can you help me?
Beta Was this translation helpful? Give feedback.
All reactions