Title: UCSS generation removes inline CSS
Last modified: April 20, 2025

---

# UCSS generation removes inline CSS

 *  Resolved [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * (@rudolfl)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/ucss-generation-removes-inline-css/)
 * Hi
 * I have an inline CSS in my code something along the line of “<span style = “background:#
   ffffff !important”>
 * This is removed in process of UCSS generation. As there is no specific CSS selector,
   how can I force this to be included in UCSS?
 * Code is generated by one of the plugins and I have no control over the HTML generation

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/ucss-generation-removes-inline-css/#post-18426380)
 * please try put `background:#ffffff` into page optm -> tuning css -> UCSS File
   Excludes and Inline and CSS Excludes fields , purge UCSS and let it regenerate
 *  Thread Starter [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * (@rudolfl)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/ucss-generation-removes-inline-css/#post-18426383)
 * Thanks
 * Can I use `background:*` ?
 * This CSS is used in color swatches and there are a few of those
 *  Plugin Support [qtwrk](https://wordpress.org/support/users/qtwrk/)
 * (@qtwrk)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/ucss-generation-removes-inline-css/#post-18426385)
 * unfortunately no , it won’t work wildcard , maybe you can just use `background:`
 *  Thread Starter [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * (@rudolfl)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/ucss-generation-removes-inline-css/#post-18426395)
 * Thank you
 * I will try. At the moment I realised I was using an outdated version of he plugin
   that generates this code.
 * New version seem to be “compatible” with UCSS generation out of the box, but 
   I do want to test your suggestion as I am sure it will come useful one day.
 * Rudolf

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘UCSS generation removes inline CSS’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [rudolfl](https://wordpress.org/support/users/rudolfl/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/ucss-generation-removes-inline-css/#post-18426395)
 * Status: resolved