Override property in attribute "style ="?

I am trying to adjust the position of a button background image in CKEditor.

Image of CKEditor hard-code buttons with background-position: 0px 0pt . I do not want to change this, as it seems to be in the core of the editor.

I can, however, set a custom class for the button and style that are listed in the stylesheet. But since the background-position operator is created in the style attribute, I cannot overwrite it from the class without even using !important .

Is it possible to override the CSS property in the style= attribute in the CSS class?

I do not think so. Does anyone know workarounds?

+7
html css
source share
2 answers

The only way to override the properties specified in the style attribute is to use !important .

+10
source share

You can set the style using some Javascript or (even better) use jQuery to do it for you.

0
source share

All Articles