Responsive Web Design - Use a Retina Image for Higher Resolution Displays

Tell us what’s happening:
The assignment is to resize an image to half its width and height to better accommodate high-resolution displays, but there is no functionality to interpret what device or what pixel density the page is being displayed on. Without this functionality, aren’t we making the page look worse on other devices? I think this (and other) assignment needs to be updated to better serve its stated purpose, which is to ADAPT to the device it is being displayed on.

Your code so far

img {height: 100px; width: 100px;}

<img src="" alt="freeCodeCamp sticker that says 'Because CamperBot Cares'">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36

Challenge: Use a Retina Image for Higher Resolution Displays

Link to the challenge:

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.