Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

html responsive images

<picture>
  <source media="(max-width: 799px)" srcset="elva-480w-close-portrait.jpg">
  <source media="(min-width: 800px)" srcset="elva-800w.jpg">
  <img src="elva-800w.jpg" alt="Chris standing up holding his daughter Elva">
</picture>
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #html #responsive #images
ADD COMMENT
Topic
Name
7+8 =