Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Заголовок документа</title> <style> caption { background: #ccc; } .top caption { caption-side: top; } .bottom caption { caption-side: bottom; } table, th, td { border: 1px solid #cccccc; padding: 3px; } td { background-color: #1c87c9; color: #ffffff; } </style> </head> <body> <h2>Пример свойства caption-side</h2> <p>Установлено значение "top":</p> <table class="top"> <caption>ABOVE</caption> <tr> <td>Текст</td> <td>Текст</td> </tr> </table> <br> <p>Установлено значение "bottom":</p> <table class="bottom"> <caption>BELOW</caption> <tr> <td>Текст</td> <td>Текст</td> </tr> </table> </body> </html>