HTML CSS examples for CSS Layout:Responsive Layout
Responsive row of icons
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> div.jumbo {<!--from w ww. j ava2 s . c o m--> background-color:Chartreuse; width:61%; margin:9px auto; padding:17px; text-align:center; } @media (max-width: 768px) { img { display:block; margin:9px auto; } } </style> </head> <body> <div class="jumbo"> <h2>Lore</h2> <img src="https://www.java2s.com/style/demo/Google-Chrome.png"> <img src="https://www.java2s.com/style/demo/Safari.png"> <img src="https://www.java2s.com/style/demo/InternetExplorer.png"> </div> </body> </html>