Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> .show { empty-cells: show; } .hide { empty-cells: hide; } body { background: #1c87c9; padding: 25px 0; color: #fff; font-size: 2em; text-align: center; } table { display: flex; justify-content: center; } td { background: #fff; border: 1px solid #8ebf42; padding: 10px 15px; color: green; } </style> </head> <body> <p>Пустые ячейки отображены</p> <table class="show"> <tbody> <tr> <td>♦</td> <td></td> <td>♦</td> <td>♦</td> </tr> </tbody> </table> <p>Пустые ячейки скрыты</p> <table class="hide"> <tbody> <tr> <td>♦</td> <td></td> <td>♦</td> <td>♦</td> </tr> </tbody> </table> </body> </html>