1. Home
  2. Articles
  3. Web Design
  4. AMP
  5. AMP and CSS !important

AMP and CSS !important

Published:

Share

Description

While testing the article AMP (accelerated mobile pages) with the Google AMP Test. I found something that I hadn't run into before.

Article

The AMP protocol doesn't support the usage of !important in the CSS.

This means I am going to have to do a little extra work on the AMP pages. Removing the !important references caused a handfull of problems with the mobile dropdown navigation. For the longest time, I refused to use !important in my CSS, and I guess I should of kept it that way.

Author

Tags

  1. Articles
  2. Web Design
  3. AMP

Related Articles