Max Castril Posted March 29, 2017 Share Posted March 29, 2017 Hi, I am using 'Nu HTML Checker' and it is throwing up the error "Bad value 100% for attribute width on element img: Expected a digit but saw % instead.". Also, the W3 Schools html references says that img width should only be pixels but how can you then scale an image depending on screen size? Using percentages for image width seems to work in Chrome. Have they really not allowed for assigning a percentage to img width?? Link to comment Share on other sites More sharing options...
dsonesuk Posted March 29, 2017 Share Posted March 29, 2017 That's is where CSS comes in, in either img {width: 100%;} OR img {max-width: 100%;} Link to comment Share on other sites More sharing options...
Max Castril Posted April 1, 2017 Author Share Posted April 1, 2017 Thanks, dsonesuk - Seems to have sorted that one! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now