Title: Certain CSS Auto Removed From Editor
Last modified: August 21, 2016

---

# Certain CSS Auto Removed From Editor

 *  [brian_denton](https://wordpress.org/support/users/brian_denton/)
 * (@brian_denton)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/certain-css-auto-removed-from-editor/)
 * Helloooo!
    I am a freelance guy who helps some people with WordPress consultations.
   I know a moderate amount about coding and stuff, so what I mainly do is help 
   clients with custom CSS and editing minor things in the php files of themes and
   widgets.
 * Anyway, the other day I’m sitting with a client and we’re trying to disable selecting/
   highlighting within a specific element on her webpage.
    All of our custom CSS
   is in the built-in CSS Editor of WordPress so we can edit everything in one place.
   I typed out
 * `#mbMedia, #mbMedia div { user-select: none; }`
 * then when we hit save the “user-select: none;” line was removed (but not the 
   name of the element). So we tried it again and same thing.
 * So I’m wondering how to disable selection/highlighting using CSS in WordPress
   and equally important, what all does WordPress automatically remove from their
   CSS Editor?
 * PS
    I also tried `#mbMedia::selection, #mbMedia::selection div { background-color:
   transparent; }` which didn’t work either.
 * Here’s my client’s site:
    [http://organicconservative.net/](http://organicconservative.net/)

The topic ‘Certain CSS Auto Removed From Editor’ is closed to new replies.

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [highlighting](https://wordpress.org/support/topic-tag/highlighting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [brian_denton](https://wordpress.org/support/users/brian_denton/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/certain-css-auto-removed-from-editor/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
