create block inside table html
"div" tag can not be used above "tr" tag. Instead you can use "tbody" tag to do your work. <table> <tbody class="green"> <tr> <td>Data</td> </tr> </tbody> <tbody class="blue"> <tr> <td>Data</td> </tr> </tbody> </table>