Title: Keeps removing CSS
Last modified: January 9, 2018

---

# Keeps removing CSS

 *  Resolved [SK](https://wordpress.org/support/users/sooskriszta/)
 * (@sooskriszta)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/keeps-removing-css/)
 * Page content keeps removing inline CSS, i.e. style=”…” whenever I put anything
   to do with a background image…whether I use `background: url(...)` or `background-
   image: url(...)`

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * (@billerickson)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/keeps-removing-css/#post-9866214)
 * This isn’t a plugin-specific issue, but rather the way WordPress works. TinyMCE(
   the editor) strips out certain styling when you switch back to visual mode.
 * I recommend you reconsider how you’re implementing this specific functionality.
   Add a class to an element and add the styling in your theme’s style.css file,
   or create a shortcode for your custom markup.

Viewing 1 replies (of 1 total)

The topic ‘Keeps removing CSS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/genesis-404-page_d8d8d8.svg)
 * [Genesis 404 Page](https://wordpress.org/plugins/genesis-404-page/)
 * [Support Threads](https://wordpress.org/support/plugin/genesis-404-page/)
 * [Active Topics](https://wordpress.org/support/plugin/genesis-404-page/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/genesis-404-page/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/genesis-404-page/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bill Erickson](https://wordpress.org/support/users/billerickson/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/keeps-removing-css/#post-9866214)
 * Status: resolved