Forum
Welcome, Guest
Please Login to access forum.
Re:width="100%" error (1 viewing) 
Go to bottom
TOPIC: Re:width="100%" error
#6616
ben harris
Fresh Boarder
Posts: 1
User Offline
width="100%" error Karma: 0  
when i run a page through google's amp test it comes back with an error stating that 100% is an invalid width.. all my images have responsive attributes and i thought amp supported this?
 
Logged Logged  
  The administrator has disabled public write access.
#6617
John Dagelmore
Admin
Posts: 3722
User Online Now
Re:width="100%" error Karma: 79  
No this is expected, the AMP format wants size for images set as explicit values and not % percentage as you have: width="75%"
http://ampready.com/getting-started/amp-img

A quick workaround could be activating the following plugin parameter to override images width/height.
 
Logged Logged  
  The administrator has disabled public write access.
Go to top