How can I override Bootstrap CSS styles

0 votes
Can you tell me How can I override Bootstrap CSS styles?
Mar 19 in Node-js by Ashutosh
• 23,230 points
48 views

1 answer to this question.

0 votes

You can override Bootstrap CSS styles using the following methods:

1. Custom CSS After Bootstrap

Place your custom CSS after the Bootstrap CSS link:

<link rel="stylesheet" href="bootstrap.min.css">

<link rel="stylesheet" href="custom.css"> <!-- Overrides -->

2. Use More Specific Selectors

Make your selector more specific than Bootstrap’s:

.navbar-nav > li > a {

  color: red !important;

}

3. Use !important

Force your style to apply:

.btn {

  background-color: green !important;

}

answered Mar 24 by anonymous

Related Questions In Node-js

0 votes
1 answer

How can I pretty-print JSON using node.js?

Hello @kartik, JSON.stringify's third parameter defines white-space insertion ...READ MORE

answered Jul 12, 2020 in Node-js by Niroj
• 82,840 points
5,087 views
0 votes
1 answer

How can I update npm on Windows?

Hello @kartik, To update NPM, this worked for ...READ MORE

answered Jul 13, 2020 in Node-js by Niroj
• 82,840 points
6,572 views
0 votes
1 answer

How can I set NODE_ENV=production on Windows?

Hello @kartik, It would be ideal if you ...READ MORE

answered Jul 13, 2020 in Node-js by Niroj
• 82,840 points
31,139 views
0 votes
1 answer

How can I get npm start at a different directory?

Hello @kartik, Try using: npm start --prefix path/to/your/app & inside ...READ MORE

answered Jul 14, 2020 in Node-js by Niroj
• 82,840 points
11,210 views
0 votes
1 answer

How to create a hidden input field in a form in HTML?

You can use the type attribute with ...READ MORE

answered Mar 24 in HTML by anonymous
52 views
0 votes
0 answers
0 votes
1 answer

How to create a table with zebra-striped rows using inline styles in HTML?

To create a zebra-striped table using inline ...READ MORE

answered Mar 24 in HTML by anonymous
63 views
0 votes
1 answer

How to make text center in Hero image with bootstra

You can use a combination of Bootstrap's ...READ MORE

answered Mar 24 in Node-js by anonymous
48 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP