HTML CSS examples for CSS Layout:Column Layout
Getting column number from td
<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>