Xavier
Xavier

Reputation: 131

How to remove css background-color from Bootstrap?

Bootstrap applies a background-color: transparent on a table

table {
   max-width: 100%;
   background-color: transparent;
}

and I want to remove this rule on only one page. I can't add a style tag on table because I don't have access to it. I was thinking to use Jquery :

$('table').css('background-color', '') 

but it doesn't work.

Upvotes: 0

Views: 3464

Answers (1)

sachin
sachin

Reputation: 406

Use this CSS on same page.

<style> table{background-color: #FDE5DD !important;} </style>

Or you can do this using JQuery

 <script> 

      $(document).ready(function(){    
      $('table').css('background-color', 'red');    
       )};

</script>

Upvotes: 3

Related Questions