Forum Discussion
Here's what I added:
#lia-body.mceContentBody, .mceContentBody th, .mceContentBody td, .mce-content-body, .mce-content-body th, .mce-content-body td { background-color: transparent; }
Instead of the "proper" overriding solution presented above you can also choose the "fist on the eye" approach with
.mce-content-body td { background: none !important; }
I recently started choosing this "approach" (even though I hate it) being tired of figuring out the hardcore Lithium CSS selectors to properly override the default rules =)...
- Yeah, I have been using Chrome Developer tools to figure out the CSS classes and play with it in there first. Using it that way has helped me get the right identifiers in there and made life so much easier! :)
Sure, the Web-Inspector is a tool no frontend developer should miss, but it basically just shows you the crazy selector chains you have to use to properly override Lithiums ID-prefixed selectors (I'm sure you know and love #lia-body =D)...and as it does hurt my dev-heart more to have 3 mile long selectors than using (an also ugly) !important, I chose to go this path...guess as long as I'm the only one customizing the community (e.g. nobody else needs to override my rules again...) this should be fine...
For those who don't know the use of !important in CSS, there is a good article on SmashingMagazine
Related Content
- 2 years ago
- 10 years ago