Answers for "image sizes for responsive media sizes"

CSS
17

css media query responsive sizes

320px
480px
600px
768px
900px
1024px
1200px
Posted by: Guest on July-14-2020
0

responsive image using media query

.img {
  background-image: url(examples/images/image-384.jpg);
  background-image: 
    -webkit-image-set(
      url(examples/images/image-384.jpg) 1x,
      url(examples/images/image-768.jpg) 2x,
    );
  background-image: 
    image-set(
      url(examples/images/image-384.jpg) 1x,
      url(examples/images/image-768.jpg) 2x,
    );
}
Posted by: Guest on February-02-2021

Browse Popular Code Answers by Language