Disable inline css style [duplicate]

Solution 1:

If you want to override inline styles then you need to add styles in your stylesheet with !important

for e.g.

width: auto !important;

Reference - CSS Specificity

Solution 2:

You can disable inline styles for any given element using JavaScript:

  1. Locate the button in the HTML document
  2. Remove the button's style attribute
var button = document.getElementById('myButton');
button.removeAttribute('style');