Make a table responsive - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Responsive

Description

Make a table responsive

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.6.1/css/bulma.css"> 
  <style id="compiled-css" type="text/css">
.table__wrapper {
   overflow-x:auto;
}

.pricing {<!--from www .  jav  a  2s . c  o  m-->
   width:100%;
}
</style> 
 </head> 
 <body> 
  <div class="panel"> 
   <div class="panel-block"> 
    <div class="pricing"> 
     <div class="table__wrapper"> 
      <table class="table is-bordered pricing__table is-fullwidth"> 
       <tbody> 
        <tr> 
         <td>Lorem ipsum dol</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
        </tr> 
        <tr> 
         <td>Lorem ipsum do<br>Lorem ipsum </td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
        </tr> 
        <tr> 
         <td>Lorem ipsum d<br>Lorem ipsum </td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
        </tr> 
        <tr> 
         <td>Lorem ipsu</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
         <td>Lorem ipsum</td> 
        </tr> 
       </tbody> 
      </table> 
     </div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials