Highlighting single TD with border colour - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Table Column

Description

Highlighting single TD with border colour

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 {<!--   ww  w.j a v a  2  s.c o m-->
   background:Chartreuse;
   border-spacing:6px;
}

td {
   background:white;
}

td {
   width:176px;
   vertical-align:top;
}

.highlight {
   outline:6px solid red;
}
</style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td>Lorem</td> 
     <td class="highlight">Lorem</td> 
     <td>Lorem i<br>Lorem ipsum dolor s</td> 
    </tr> 
    <tr> 
     <td>Lorem</td> 
     <td>Lorem i<br>Lorem ipsum dolor s</td> 
     <td>Lorem</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials