How would I go about modifying the CSS to change the color of the navbar in Twitter Bootstrap?
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- How to add a “active” class to a carousel first el
- Add animation to jQuery function Interval
- jQuery hover to slide?
inverse and defult class name mention in twittter bootstrap cause them black and white color. better you should not override that and add a class near that and write you particular style for that
like so. Thank you.
25+ Bootstrap Nav Menus Code
Try this too. This worked for me.
Example ,Just try like this
navabr.css
The default major color uses are as below:
you can learn more http://fellowtuts.com/twitter-bootstrap/to-change-navbar-color-in-twitter-bootstrap-3/
Do you have to change the CSS directly? What about...
Available navbars
You've got two basic navbars:
Default color usage
Here are the main colors and their usage:
#F8F8F8
: navbar background#E7E7E7
: navbar border#777
: default color#333
: hover color (#5E5E5E
for.nav-brand
)#555
: active color#D5D5D5
: active backgroundDefault style
If you want to put some custom style, here's the CSS you need to change:
Custom colored navbar examples
Here are four examples of a custom colored navbar:
JSFiddle link
And the SCSS code:
And finally, a little gift
I've just made a script which will allow you to generate your theme: TWBSColor - Generate your own Bootstrap navbar
[Update]: TWBSColor now generates SCSS/SASS/Less/CSS code.
[Update]: From now, you can use Less as the default language provided by TWBSColor
[Update]: TWBSColor now supports drop down menus colorization
[Update]: TWBSColor now allows to choose your version (Bootstrap 4 support added)