I have an html body with some tags containing inline styles.Normally we could override inline with !important But as I need the page to be AMP valid , I couldn't use this method. Any way to do this in AMP valid method ??
I have an html body with some tags containing inline styles.Normally we could override inline with !important But as I need the page to be AMP valid , I couldn't use this method. Any way to do this in AMP valid method ??
No. As you mentioned, in AMP you can not use the !important style. Also you can only have one style tag and it has to be in the head tag.
You can override the general styles inline but not the other way around.
AMP needs to be able to enforce its element sizing rules, allowing the !important style would interfere with that.