Welcome to the Treehouse Community
Looking to learn something new?
What does srcset and 1x,2x,3x resolution mean? I have some problems with that.
I don't understand What does srcset and 1x,2x,3x resolution mean? I have some problems with that. Can you explain me please?
Steven Parker215,972 Points
The srcset attribute allows for a better resolution fit for your images on different devices.
By providing a set of images that have different resolutions, the browser can select the one that best fits the pixel density of the device it will be displayed on.
The "1x, 2x, 3x ... etc." designations indicate the ratio of device pixels to CSS pixels that the image is intended for. The browser uses this number to select which image to use.