Override element.style using CSS

css

Solution

Although it's often frowned upon, you can technically use:

display: inline !important;

It generally isn't good practice but in some cases might be necessary. What you should do is edit your code so that you aren't applying a style to the `<li>` elements in the first place.

Problem

I have an HTML page from page builder, and it injects `style` attribute directly to the element. I found it's considered as `element.style`. I want to override it using CSS. I can match the element, but it doesn't override it. How can I override the style using CSS?

Original source

Related problems