简体   繁体   中英

Override Bootstrap navbar CSS with my own in Bootstrap 2

I am trying to override the CSS for the navbar in Twitter Bootstrap 2, below is the CSS I see in the console when I expect the element.

// CSS found in the original bootstrap.css
.navbar-inner {
 background-color: #fafafa;
 background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
 background-repeat: repeat-x;
 border: 1px solid #d4d4d4;
 border-radius: 4px;
 box-shadow: 0 1px 4px rgba(0, 0, 0, 0.067);
 padding-left: 20px;
 padding-right: 20px;
}

My CSS to override this class within my own custom.css //

.navbar-inner {
  border: 0px !important;
  border-radius: 0 !important;
  background-color: #ffffff !important;     
}

How do I amend the navbar-inner class in custom.css to remove all the box-shadow/border-radius/background image.. I essentially just want a white background without any border whatsoever.

当然要睡了

background-image: none !important;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM