Changing one border of a cell's thickness. - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Cell

Description

Changing one border of a cell's thickness.

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">

table, th, td {
   border: 1px solid black;
}
td {<!--from   ww w .  j a  v a  2  s.  c om-->
   border-top: 5px solid red;
}


      </style> 
 </head> 
 <body> 
  <table style="width:100%"> 
   <tbody> 
    <tr> 
     <td>This is 1st td</td> 
     <td>This is 2nd td</td> 
    </tr> 
    <tr> 
     <td>this is it</td> 
     <td>it is this</td> 
    </tr> 
    <tr> 
     <td>another this is it</td> 
     <td>another it is this</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials