Set a predefined text content of a table cell - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Set a predefined text content of a 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">
td.orange:before {
   background:Chartreuse;
   content:"TRIPLE";
}
</style> <!--   w w w  .j  ava 2 s.  co m-->
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem ips</td> 
     <td class="orange"></td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials