Title: CSS Selectors
Last modified: May 25, 2017

---

# CSS Selectors

 *  Resolved [spacetimepartners](https://wordpress.org/support/users/spacetimepartners/)
 * (@spacetimepartners)
 * [9 years ago](https://wordpress.org/support/topic/css-selectors-17/)
 * HI!
 * Thanks for a fantastic plugin. I was wondering how to style with CSS the background
   on my header widget. I’ve tried longer and shorter variations of this selector
   with no luck:
 * #wysiwyg_widgets_widget-5.widget_wysiwyg_widgets_widget.widget{
    background-color:
   yellow; }
 * What do you suggest I do to achieve this?
 * Many thanks!

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

 *  Thread Starter [spacetimepartners](https://wordpress.org/support/users/spacetimepartners/)
 * (@spacetimepartners)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/css-selectors-17/#post-9424386)
 * Hi,
 * I’m giving it another go with the following code but still no luck:
 * #widget .wysiwyg_widgets_widget-5 {
    background-color: #408c3d;}
 * Any suggestions as to how to manipulate the background color of the widgets would
   be greatly appreciated.
 *  Plugin Contributor [Lap](https://wordpress.org/support/users/lapzor/)
 * (@lapzor)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/css-selectors-17/#post-9481542)
 * Hi,
 * Id is referred to in css with #, and class name with the .
    To make sure to overrule
   any other background that might be set on the same object, you can add !important.
 * Please try:
 * #wysiwyg_widgets_widget-5 {
    background-color: #408c3d !important; }
 * Hope that helps!
 * Kind regards,
    -  This reply was modified 8 years, 9 months ago by [Lap](https://wordpress.org/support/users/lapzor/).

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

The topic ‘CSS Selectors’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysiwyg-widgets_94bdc6.svg)
 * [Widget Content Blocks](https://wordpress.org/plugins/wysiwyg-widgets/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wysiwyg-widgets/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wysiwyg-widgets/)
 * [Active Topics](https://wordpress.org/support/plugin/wysiwyg-widgets/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysiwyg-widgets/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysiwyg-widgets/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [div](https://wordpress.org/support/topic-tag/div/)
 * [header](https://wordpress.org/support/topic-tag/header/)
 * [selector](https://wordpress.org/support/topic-tag/selector/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)
 * [widget](https://wordpress.org/support/topic-tag/widget/)

 * 2 replies
 * 2 participants
 * Last reply from: [Lap](https://wordpress.org/support/users/lapzor/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/css-selectors-17/#post-9481542)
 * Status: resolved