Reduce image size: use media queries for background images
Channel:
Subscribers:
791,000
Published on ● Video Link: https://www.youtube.com/watch?v=Dx-WaZkp58Q
The srcset attribute is a great way to enable the browser to choose the right image size of image with an img element.
But what about background images?
In this video you'll learn how to use media queries to enable the browser to choose the right background image across different devices and display sizes.
Still have questions regarding the use of media queries for background images? Use #AskChrome on Twitter to send them to the Chrome team!
Series playlist → https://www.youtube.com/playlist?list=PLNYkxOF6rcICVl6Vb-AFlw81bQLuv6a_P
Subscribe to Google Chrome Developers here → https://goo.gle/ChromeDevs
Other Videos By Chrome for Developers
Tags:
responsive images
srcset
background images
progressive web app
PWA
Google Chrome Developers
Google Chrome. Chrome Developers
google chrome developer
chrome developer
GDS: Yes;