Home
CSS
CSS Style Images
Tryit: Create a responsive image
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> img { max-width: 100%; height: auto; } </style> </head> <body> <h2>Responsive Image</h2> <p>Responsive images will automatically adjust to fit the size of the screen.</p> <p>Resize the browser window to see the effect:</p> <img src="img_5terre_wide.jpg" alt="Cinque Terre" width="1000" height="300"> </body> </html>