Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Responsive Resized Image with max-width</title> <style> img { max-width: 100%; height: auto; } </style> </head> <body> <h2>Responsive Resized Image with max-width</h2> <p>Resize the browser to see the responsive effect:</p> <img src="/uploads/media/default/0001/03/5bfad15a7fd24d448a48605baf52655a5bbe5a71.jpeg" alt="New York" /> </body> </html>