Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Conflicting style issue
422
MVP
You have style and custom css.
You also have classes for bigbutton in both, both are loading. You dont use !important , so how does it differentiate.
I am using cutom stylesheet, and also stylesheet switcher, but having issues with styles inheriting classes from style.css and overiding classes in custom css.
By the way bigbutton just an example
You also have classes for bigbutton in both, both are loading. You dont use !important , so how does it differentiate.
I am using cutom stylesheet, and also stylesheet switcher, but having issues with styles inheriting classes from style.css and overiding classes in custom css.
By the way bigbutton just an example
There was an error rendering this rich post.
0
Best Answer
-
jspautsch ✭✭✭
You also have classes for bigbutton in both, both are loading. You dont use !important , so how does it differentiate.
All other things being equal custom.css overrides style.css because it's linked after.
I say all other things being equal because between the two stylesheets more specific tags will always win out, e.g.#Content .BigButton
will always override.BigButton
, no matter which sheet it's in.0
Answers
I say all other things being equal because between the two stylesheets more specific tags will always win out, e.g.
#Content .BigButton
will always override.BigButton
, no matter which sheet it's in.There was an error rendering this rich post.
I drop copy of style.css into ustom theme and modify it. But then say i create styleswitch, adding abc.css , style.css attributes overwrite my custom classes etc. I must be adding them wrong. Its all good if i dot use styleswitch. Think i need to recode it.
Scuse spelling errors im on bloody ipad.
There was an error rendering this rich post.
Must be my styleswitch code, will check again later when I get back.
There was an error rendering this rich post.