Create three section inside one big section - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:3 Column

Description

Create three section inside one big section

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <style>
.product-list {<!-- www . j  ava 2s .c o m-->
   display:grid;
   grid-template-columns:2fr 2fr;
   grid-column-gap:11px;
}

.product-list h2 {
   grid-column:span 3;
}

.product-listing>section {
   margin-bottom:11px;
   background:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="wrap"> 
   <section class="product-listing"> 
    <h2>Category 1</h2> 
    <section>
      first 
    </section> 
    <section>
      second 
    </section> 
    <section>
      third 
    </section> 
    <h2>Category 2</h2> 
    <section>
      fourth 
    </section> 
    <section>
      fifth 
    </section> 
    <h2>Category 3</h2> 
    <section>
      sixth 
    </section> 
    <section>
      seventh 
    </section> 
    <section>
      eighth 
    </section> 
    <section>
      ninth 
    </section> 
   </section> 
  </div>  
 </body>
</html>

Related Tutorials