Title: CSS in Widget
Last modified: August 21, 2016

---

# CSS in Widget

 *  Resolved [wrecknoble](https://wordpress.org/support/users/wrecknoble/)
 * (@wrecknoble)
 * [12 years ago](https://wordpress.org/support/topic/css-in-widget/)
 * I’m having an impossibly hard time trying to configure the widget to use different
   CSS compared to the main event list.
 * Can you please describe how to do this? I see that a similar question was asked
   a long time ago, but the response was pretty vague. I’m not that strong with 
   CSS and am not sure how to specify the widget to use different code.
 * [https://wordpress.org/plugins/event-list/](https://wordpress.org/plugins/event-list/)

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

 *  [wptestert](https://wordpress.org/support/users/wptestert/)
 * (@wptestert)
 * [12 years ago](https://wordpress.org/support/topic/css-in-widget/#post-4694230)
 * Give your widget a class or id, let’s say the id of your widget is mywidget (
   <div id=”mywidget”>)
 * Then, copy all the styles from style.css and paste them underneath,
 * Befiore all those styles, you need to paste #mywidget, so all these styles are
   referring only to the widget.
 *     ```
       #mywidget .event-list {
       	clear: both;
       }
   
       #mywidget ul.event-list-view, ul.single-event-view {
       	list-style: none !important;
       	margin: 1.5em 0 2em 0;
       	padding: 0;
       }
   
       ......... etc etc
       ```
   
 * Modify all these styles to your liking, and you got what you need
 *  Thread Starter [wrecknoble](https://wordpress.org/support/users/wrecknoble/)
 * (@wrecknoble)
 * [12 years ago](https://wordpress.org/support/topic/css-in-widget/#post-4694271)
 * Thanks a lot I’ll try that out when I get home. Much appreciated.

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

The topic ‘CSS in Widget’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/event-list_f8f8f8.svg)
 * [Event List](https://wordpress.org/plugins/event-list/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/event-list/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/event-list/)
 * [Active Topics](https://wordpress.org/support/plugin/event-list/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/event-list/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/event-list/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [wrecknoble](https://wordpress.org/support/users/wrecknoble/)
 * Last activity: [12 years ago](https://wordpress.org/support/topic/css-in-widget/#post-4694271)
 * Status: resolved