How to override MDBoostrap css when using boostrap tables


Topic: How to override MDBoostrap css when using boostrap tables

black hanses asked 1 months ago

I'm using bootstrap tables with mdbootstrap css, and when I add these data attributes to my table, it makes them purple (shown below). How can I override this in my css file? Upon inspecting the rendered source code in the browser, I see that all of these are .btn-secondary. But when I try overriding that in my main.css file, it doesn't change the color of the button.

enter image description here


Tomek Makowski staff answered 1 months ago

Hi

You have to add !important to the css file

Regards


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.19.1
  • Device: Mac
  • Browser: Chrome
  • OS: MacOS
  • Provided sample code: No
  • Provided link: No