Stacking images on top of paragraph columns - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Stacking images on top of paragraph columns

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">

header {<!--   w  w w .j  a v  a  2  s  .c  o m-->
   position: fixed;
   z-index: 1000;
   width: 100%;
   top: 0px;
   background-color:red;
}
figure.adjustable {
   width: 29%;
}
.img {
   position:relative;
   height: 200px; 
   width: 300px; 
   overflow: hidden;
   max-width: 100%;
}
.third {
   width: 30%;
   float: left;
   padding: 1%;
}


      </style> 
 </head> 
 <body> 
  <section> 
   <div class="third"> 
    <h2> Kitten One</h2> 
    <img class="img" src="https://www.java2s.com/style/demo/Safari.png" alt="kitten one"> 
    <p>this is a test this is a test this is a test this is a test this is a test this is a test </p> 
   </div> 
   <div class="third"> 
    <h2>Kitten Two</h2> 
    <img class="img" src="https://www.java2s.com/style/demo/Opera.png" alt="kitten two"> 
    <p>this is a test this is a test this is a test this is a test this is a test this is a test </p> 
   </div> 
   <div class="third"> 
    <h2> Kitten Three</h2> 
    <img class="img" src="https://www.java2s.com/style/demo/Safari.png" alt="kitten three"> 
    <p>this is a test this is a test this is a test this is a test this is a test this is a test </p> 
   </div> 
  </section>  
 </body>
</html>

Related Tutorials