Layout 3 images centered in a row - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Layout 3 images centered in a row

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">
.contain {<!--from  w w w  . j av a2  s.  com-->
   display:flex;
   justify-content:center;
}

.social {
   padding:11px;
}
</style> 
 </head> 
 <body> 
  <div class="contain"> 
   <div class="social"> 
    <img src="https://www.java2s.com/style/demo/Opera.png" alt="" width="75" height="75"> 
   </div> 
   <div class="social"> 
    <img src="https://www.java2s.com/style/demo/Firefox.png" alt="" width="75" height="75"> 
   </div> 
   <div class="social"> 
    <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt="" width="75" height="75"> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials