Align 3 images in same row with equal spaces - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image Align

Description

Align 3 images in same row with equal spaces

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">
div {<!--from ww  w .j av a2 s.c o m-->
   text-align:justify;
}

div img {
   display:inline-block;
   width:100px;
   height:100px;
}

div:after {
   content:'';
   display:inline-block;
   width:100%;
}
</style> 
 </head> 
 <body> 
  <div> 
   <img src="https://www.java2s.com/style/demo/Safari.png" alt=""> 
   <img src="https://www.java2s.com/style/demo/Google-Chrome.png" alt=""> 
   <img src="https://www.java2s.com/style/demo/InternetExplorer.png" alt=""> 
  </div>  
 </body>
</html>

Related Tutorials