Title: Error &#8220;CSS !important&#8221; The Answer
Last modified: October 10, 2016

---

# Error “CSS !important” The Answer

 *  Anonymous User 15155323
 * (@anonymized-15155323)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/)
 * The problem is the use of some themes shortcodes. For example if I create a post
   with only text and images, this error will not show up, but if I put any shortcodes,
   this code is inserted in amps pages, example:
 * If I add in my post the shortcode:
 * [hr style = “1” margin = “0px 5px 5px 0px”]
 * When the page is generated that code becomes:
 * <div class = “hr hr -1” style = ‘margin: 5px 0px 5px 0px important; “> </ div
   >
 * And automatically the AMP plugin is putting it as follows:
 * } / * Inline styles * /
    .amp-wp-inline-d922dd8cdb9e0538e14ecf049922015f {margin:
   5px 0px 5px 0px important;} </ style>
 * This does not occur in previous versions, only in 0.4
 * I hope this helps and apologize for my english 🙂

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

 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/#post-8274373)
 * Thanks for the report! We’re working on a fix here which should be released as
   part of 0.4.1 soon: [https://github.com/Automattic/amp-wp/pull/525](https://github.com/Automattic/amp-wp/pull/525)
 *  [pako69](https://wordpress.org/support/users/pako69/)
 * (@pako69)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/#post-8274425)
 * hi [@batmoo](https://wordpress.org/support/users/batmoo/) thanks and waiting 
   for it 🙂
 * > just a simple question please : I have made on my websites a heavy customisation
   of your templates (based on the last one: 0.4) s I hope the 0.4.1 will not break
   anything…
    -  This reply was modified 9 years, 7 months ago by [pako69](https://wordpress.org/support/users/pako69/).
 *  [Mohammad Jangda](https://wordpress.org/support/users/batmoo/)
 * (@batmoo)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/#post-8274458)
 * 0.4.1 just has 3 small bug fixes.
 *  [pako69](https://wordpress.org/support/users/pako69/)
 * (@pako69)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/#post-8274480)
 * Great!
    I hope they will remove some strange behaviors like adding extra padding
   in your .amp-wp-inline classes
 * In this page: [http://www.pascal-bourhis.net/google/serposcope/amp](http://www.pascal-bourhis.net/google/serposcope/amp)
   your plugin has generared this:
 *     ```
       .amp-wp-inline-73cafbe3738584bd34670f69221f6b3e {
           padding-bottom: 28.666666666667%;
       }
       ```
   
 * which cause an extra big space under some elements, I removed it by:
 *     ```
       .amp-wp-article-content .avia-slideshow-inner.amp-wp-inline-73cafbe3738584bd34670f69221f6b3e {
           padding-bottom: 0;
       }
       ```
   
 *  Thread Starter Anonymous User 15155323
 * (@anonymized-15155323)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/#post-8275569)
 * Thank you [@batmoo](https://wordpress.org/support/users/batmoo/) for the quick
   answer and fix.
    Problem solved!
    -  This reply was modified 9 years, 7 months ago by Anonymous User 15155323.

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

The topic ‘Error “CSS !important” The Answer’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: Anonymous User 15155323
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/error-css-important-the-answer/#post-8275569)
 * Status: not resolved