Title: [Plugin: Document Attachment Widget] Plugin CSS overrides theme styles
Last modified: August 20, 2016

---

# [Plugin: Document Attachment Widget] Plugin CSS overrides theme styles

 *  Resolved [Jaidesign](https://wordpress.org/support/users/jaidesign/)
 * (@jaidesign)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-document-attachment-widget-plugin-css-overrides-theme-styles/)
 * Hi,
 * One issue: when widget is active it overrides styles set in theme style.css with
   its own rules.
 * this is a bit clumpsy.. I invite the Author to add plugin spescific classses 
   to his plugin styles.
 * regards.
 * [http://wordpress.org/extend/plugins/document-attachment-widget/](http://wordpress.org/extend/plugins/document-attachment-widget/)

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

 *  [Andy Leppard](https://wordpress.org/support/users/andyleppard/)
 * (@andyleppard)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-document-attachment-widget-plugin-css-overrides-theme-styles/#post-3098552)
 * Hi, yeah, I’d like to second this – you just need to prefix your CSS with your
   plugin-specific class:
 *     ```
       /* Document attachment widget style sheet */
   
       .widget_document_attachments .attachement {
         margin: 0;
         padding: 7px 0;
         list-style: none;
       }
       .widget_document_attachments li {
         padding: 2px 0 2px 25px;
       }
       .widget_document_attachments .powerpoint {
         background: url('../icons/pp_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .csv, .widget_document_attachments .txt, .widget_document_attachments .plain {
         background: url('../icons/txt_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .msword {
         background: url('../icons/word_icon.gif') no-repeat scroll 0 0;
       }
       .widget_document_attachments .pdf {
         background: url('../icons/pdf_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .excel {
         background: url('../icons/excel_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .gif {
         background: url('../icons/gif_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .png {
         background: url('../icons/png_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .jpeg {
         background: url('../icons/jpg_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .x-shockwave-flash {
         background: url('../icons/swf_icon.gif') no-repeat 0 0;
       }
       .widget_document_attachments .filesize {
         font-size: 9px;
       }
       .widget_document_attachments .description {
         font-style: italic;
       }
       ```
   
 *  [Andy Leppard](https://wordpress.org/support/users/andyleppard/)
 * (@andyleppard)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-document-attachment-widget-plugin-css-overrides-theme-styles/#post-3098553)
 * It’s a nice little plugin, but the CSS causes headaches I don’t need, so it’s
   disabled for the time being.
 * BTW there’s a spelling mistake in one of your classes: `.attachement`
 * Keep up the good work!
 *  Plugin Author [Geansai](https://wordpress.org/support/users/geansai/)
 * (@geansai)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-document-attachment-widget-plugin-css-overrides-theme-styles/#post-3098556)
 * Thanks Andy for your comments and CSS, this has now been worked into the plugin.

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

The topic ‘[Plugin: Document Attachment Widget] Plugin CSS overrides theme styles’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/document-attachment-widget.svg)
 * [Document Attachment Widget](https://wordpress.org/plugins/document-attachment-widget/)
 * [Support Threads](https://wordpress.org/support/plugin/document-attachment-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/document-attachment-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/document-attachment-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/document-attachment-widget/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Geansai](https://wordpress.org/support/users/geansai/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-document-attachment-widget-plugin-css-overrides-theme-styles/#post-3098556)
 * Status: resolved