D-W D-W - 1 year ago 104
CSS Question

Override element.style using CSS

I have an HTML page from page builder, and it injects

attribute directly to the element. I found it's considered as

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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download