hide overflow on tables - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table

Description

hide overflow on tables

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">
.div-table {
   display:table;
   position:absolute;
   height:96%;
   width:96%;
}

.div-cell {<!--from w w  w  . j  av  a 2 s . co m-->
   display:table-cell;
   padding:3.6%;
   vertical-align:middle;
}

.div-alignedcontents {
   margin-left:auto;
   margin-right:auto;
   text-align:center;
}
</style> 
 </head> 
 <body> 
  <div class="div-table"> 
   <div class="div-cell"> 
    <div class="div-alignedcontents"> 
     <p>Lorem ipsum dolor sit amet, consectetur adipiscin</p> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials