Getting column number from td - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Column Layout

Description

Getting column number from td

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{<!--  ww  w. jav a2  s.c  o m-->
   background-color:blue;
   padding:10px;
}


      </style> 
 </head> 
 <body> 
  <table> 
   <tbody> 
    <tr> 
     <td onclick="">A</td> 
     <td onclick="">B</td> 
    </tr> 
   </tbody> 
  </table>  
 </body>
</html>

Related Tutorials