Title: Css error when amp validating
Last modified: September 4, 2018

---

# Css error when amp validating

 *  Resolved [miealex](https://wordpress.org/support/users/miealex/)
 * (@miealex)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/css-error-when-amp-validating/)
 * I get a css validation error when trying to validate a domain where I have the
   plugin installed.
 * > [css error on amp validation](https://imgur.com/lz2teBp)
    -  This topic was modified 7 years, 7 months ago by [miealex](https://wordpress.org/support/users/miealex/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcss-error-when-amp-validating%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Abdul Jabbar](https://wordpress.org/support/users/encodingjabbar/)
 * (@encodingjabbar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/css-error-when-amp-validating/#post-10654845)
 * Hi [@miealex](https://wordpress.org/support/users/miealex/),
 * Can you tell me what are you adding any custom CSS in the AMP?
    Let me know.
 *  Thread Starter [miealex](https://wordpress.org/support/users/miealex/)
 * (@miealex)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/css-error-when-amp-validating/#post-10655543)
 * > .fsp h2 a, .fbp h2 a, .amp-post-title, .amp-archive-title {color: #f47001 !
   > important;}
   >  .loop-img, .rlp-image, h3 {margin-top: 20px; clear: both;} .fsp-
   > cnt p, .fbp-cnt p .loop-category, .loop-title {padding: 0 20px !important;}.
   > pt-dt, .at-dt {display: none;} .amp-related-posts-title, .shr-txt, .amp-tags
   > span {font-weight: bold; font-size: 18px; color: #f47001 !important;} .cntn-
   > wrp p {margin: 5px 0 0 0 !important;} .alignright {float: none;} .fsp, .fbp{
   > margin-top: 20px !important; margin-bottom: 0 !important;} [layout=responsive][
   > width][height]:not(.i-amphtml-layout-responsive), [width][height][sizes]:not(.
   > i-amphtml-layout-responsive) { display: inline-block; } .loop-pagination { 
   > margin: 50px 0px 0 0px !important;} .fsp-cnt .loop-category, .fbp-cnt .loop-
   > category { margin-top: 20px !important; } [layout=responsive][width][height]:
   > not(.i-amphtml-layout-responsive), [width][height][sizes]:not(.i-amphtml-layout-
   > responsive) {display: inline-block !important; margin-left: 5px;}
    -  This reply was modified 7 years, 7 months ago by [miealex](https://wordpress.org/support/users/miealex/).
 *  [Abdul Jabbar](https://wordpress.org/support/users/encodingjabbar/)
 * (@encodingjabbar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/css-error-when-amp-validating/#post-10658024)
 * Hi [@miealex](https://wordpress.org/support/users/miealex/),
 * The CSS(i-amphtml-layout-responsive) as the prefix, which you are adding is not
   please remove this to avoid the AMP validation error.

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

The topic ‘Css error when amp validating’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Abdul Jabbar](https://wordpress.org/support/users/encodingjabbar/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/css-error-when-amp-validating/#post-10658024)
 * Status: resolved