Analog of colspan with display: table; - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Analog of colspan with display: table;

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 {<!--   ww w .ja v a  2s. co  m-->
   width:511px;
}

.cell {
   width:100px;
   height:51px;
   background-color:Chartreuse;
   float:left;
   border:2px solid yellow;
}

.wideCell {
   width:509px;
   height:51px;
   background-color:blue;
   float:left;
   border:2px solid pink;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="wideCell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="cell"></div> 
   <div class="wideCell"></div> 
  </div>  
 </body>
</html>

Related Tutorials