Title: Remove inline CSS
Last modified: August 22, 2016

---

# Remove inline CSS

 *  [Macxim](https://wordpress.org/support/users/macxim/)
 * (@macxim)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/remove-inline-css/)
 * Is it possible to remove all inline CSS injected by jQuery to avoid stuff like
   this:
 *     ```
       <div id="cookie-law-info-bar" style="display: block; color: rgb(0, 0, 0); font-family: inherit; position: fixed; bottom: 0px; background-color: rgb(255, 255, 255);"><span>
   
           <a href="#" id="cookie_action_close_header" class="medium cli-plugin-button cli-plugin-main-button" style="color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);">...</a>
   
           <a href="" id="" class="cli-plugin-main-link" style="color: rgb(0, 0, 0);">...</a></span>
       </div>
   
       <div id="cookie-law-info-again" style="color: rgb(0, 0, 0); position: fixed; font-family: inherit; bottom: 0px; right: 100px; display: none; background-color: rgb(255, 255, 255);"><span id="cookie_hdr_showagain">Privacy & Cookies Policy</span></div>
       ```
   
 * Thank you for your answer.
 * [https://wordpress.org/plugins/cookie-law-info/](https://wordpress.org/plugins/cookie-law-info/)

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

 *  [Richard](https://wordpress.org/support/users/richardashby/)
 * (@richardashby)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/remove-inline-css/#post-5344078)
 * Hi,
 * The plugin uses jQuery to add CSS attributes. I do eventually want to change 
   that but doing so is quite fundamental to the plugin and not something you can
   switch off in the settings, for example. Not something I’m going to have time
   to do any time soon either, unfortunately.
 * Out of interest, why do you wish to avoid the HTML markup being displayed like
   that?
 * Al the best
    Richard
 *  Thread Starter [Macxim](https://wordpress.org/support/users/macxim/)
 * (@macxim)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/remove-inline-css/#post-5344130)
 * Hi,
 * Thank you for your answer.
    I prefer not to have any inline style, at all _if
   possible_.
 * I prefer having control over the code and style elements in a separate .css/.
   scss file.
 * I think you shouldn’t force people to use those default styles.
    Of course I 
   understand some people don’t want to code anything and just want their cookie
   law bar and that’s it. As you suggest, a checkbox that would switch off the styles
   and let the user do what they want with it would be perfect. I understand this
   is quite heavy.
 * Also, is there any reason about why you are loading the cookie-law-info/js/cookielawinfo.
   js file in the head instead of before the closing <body> tag?

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

The topic ‘Remove inline CSS’ is closed to new replies.

 * ![](https://ps.w.org/cookie-law-info/assets/icon.svg?rev=3007243)
 * [CookieYes – Cookie Banner for Cookie Consent (Easy to setup GDPR/CCPA Compliant Cookie Notice)](https://wordpress.org/plugins/cookie-law-info/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cookie-law-info/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cookie-law-info/)
 * [Active Topics](https://wordpress.org/support/plugin/cookie-law-info/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cookie-law-info/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cookie-law-info/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Macxim](https://wordpress.org/support/users/macxim/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/remove-inline-css/#post-5344130)
 * Status: not a support question