Responsive CSS table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Responsive CSS table cell

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">
.wrapper {<!--from   w w w .ja  v a2 s. c om-->
   display:table;
   width:100%;
}

.cell {
   display:table-cell;
}

.cell1 {
   background:yellow;
}

.cell2 {
   background:lightblue;
}

.cell3 {
   height:0;
   padding-bottom:100%;
   background-color:Chartreuse;
   border-radius:51%;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <div class="cell cell1">
     Lor 
   </div> 
   <div class="cell cell2">
     Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. 
   </div> 
   <div class="cell3">
     Lorem ipsu 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials