Question about responsive image
-
Hello,
Wordpress adds “srcset” to create responsive images but I don’t understand which one is server in this example :
<img src="https://website.com/wp-content/uploads/2022/08/77RNS0RQ2WNP1659376893327-350x197.jpg" class="single-featured wp-post-image" alt="" srcset="https://website.com/wp-content/uploads/2022/08/77RNS0RQ2WNP1659376893327-350x197.jpg 350w, https://website.com/wp-content/uploads/2022/08/77RNS0RQ2WNP1659376893327-700x394.jpg 700w, https://website.com/wp-content/uploads/2022/08/77RNS0RQ2WNP1659376893327-1300x731.jpg 1300w, https://website.com/wp-content/uploads/2022/08/77RNS0RQ2WNP1659376893327-250x141.jpg 250w" sizes="(max-width: 350px) 100vw, 350px" width="350" height="197">
If I understand if the viewport is 100% and width below 350px, it serves the 350w version ?
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by .
- This topic was modified 2 years, 3 months ago by . Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Question about responsive image’ is closed to new replies.