Multiple responsive images - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Multiple responsive images

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
html, body {
   height:100%;
   width:100%;
   margin:0;
   padding:0;
}

.wrapper {<!--   w  w w  .ja v  a2  s  . c o m-->
   margin:51px auto;
   width:81%;
   background-color:Chartreuse;
   text-align:center;
}

.insideWrap {
   display:inline-block
}

.img-responsive {
   max-height:100%;
   width:auto;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <div class="insideWrap"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" class="img-responsive" alt="man0"> 
    <img src="https://www.java2s.com/style/demo/Safari.png" class="img-responsive" alt="man1"> 
   </div> 
   <div class="insideWrap"> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png" class="img-responsive" alt="man2"> 
    <img src="https://www.java2s.com/style/demo/InternetExplorer.png" class="img-responsive" alt="man3"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials