HTML CSS examples for CSS Widget:Table Cell
Show only the last three table cell
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> td {<!-- w w w .j av a2 s . c o m--> text-align:center; border:2px solid Chartreuse; } table { table-layout:fixed; } td { display:none; } td:nth-last-child(-n + 3) { display:table-cell; } </style> </head> <body> <div class="tabel-val"> <br> <br> <table id="myTable" style="width:100%" class="responstable"> <tbody> <tr class="val"> <td>L</td> <td>L</td> <td>L</td> <td>L</td> <td>L</td> <td>L</td> <td>L</td> <td>L</td> <td>L</td> <td>Lo</td> </tr> </tbody> </table> </div> </body> </html>