HTML CSS examples for CSS Layout:Responsive Layout
Image responsiveness with img
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> .box {<!--from w ww .j a va 2 s. c o m--> width:100%; height:auto; } .box img { width:100%; max-width:100%; min-width:100%; } </style> </head> <body> <div class="box"> <img src="https://www.java2s.com/style/demo/Firefox.png"> </div> </body> </html>