Answers for "how to overwrite important in css"

CSS
1

override important css

/* Override CSS with existing !important rule */
$(document).ready(function() {
    $('#ID').attr('style', 'background: #095540 !important;');
});
Posted by: Guest on October-09-2020
0

how to overwrite a css importnat

/*Some examples with a higher specificity (first is highest/overrides, third is lowest):*/

table td    {height: 50px !important;}
.myTable td {height: 50px !important;}
#myTable td {height: 50px !important;}
Posted by: Guest on March-20-2021

Browse Popular Code Answers by Language