CSS to hide table and show a tr - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Row

Description

CSS to hide table and show a tr

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">
td {<!--  w  w  w .  ja va  2  s.c  o m-->
   display:none
}

td.shown {
   display:table-cell
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem ip</td> 
     <td>Lorem ip</td> 
    </tr> 
    <tr> 
     <td class="shown">Lorem i</td> 
     <td>Lorem ip</td> 
    </tr> 
    <tr> 
     <td>Lorem ip</td> 
     <td>Lorem ip</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials