October 2017
Intermediate to advanced
370 pages
8h 57m
English
We have seen that CSS is a key part of layout and design in AMP, as it is in HTML. In fact, AMP components come with built-in, default styles that are defined in a CSS file, amp.css, that's automatically included by the AMP library. For custom CSS styling in your AMP pages, there are restrictions on what you can do. You should already know that:
There are also some further restrictions you should be aware of:
| Style | Restriction | Description |
| !important qualifier | Not allowed | Allows AMP to enforce its styling rules |
| Class and tag names that start with -amp- |
Read now
Unlock full access