Center and evenly spread images with responsive stacking - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Center and evenly spread images with responsive stacking

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">
#events {<!--   w w w . j  a  v  a 2s  . c  o m-->
   margin:0 auto;
   width:81%;
   text-align:center;
}

#events div {
   display:inline-block;
}
</style> 
 </head> 
 <body> 
  <section id="events" class="main style3 primary"> 
   <div> 
    <a href="my"> <img src="https://www.java2s.com/style/demo/Opera.png" class="event-posters" alt="ties spencer parker minival bigfoots tickets"> </a> 
   </div> 
   <div> 
    <a href="my"> <img src="https://www.java2s.com/style/demo/Google-Chrome.png" class="event-posters" alt="ties spencer parker minival bigfoots tickets"> </a> 
   </div> 
   <div> 
    <a href="my"> <img src="https://www.java2s.com/style/demo/Opera.png" class="event-posters" alt="ties spencer parker minival bigfoots tickets"> </a> 
   </div> 
  </section>  
 </body>
</html>

Related Tutorials