Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <title>Title of the document</title> <style> table { width: 100%; border-collapse: collapse; } table, th, td { border: 1px solid #cccccc; } td { height: 100px; } .top { vertical-align: top; } .bottom { vertical-align: bottom; } </style> </head> <body> <h2>Vertical-align property example</h2> <table> <tr> <th>Bottom</th> <th>Middle</th> <th>Top</th> </tr> <tr> <td class="bottom">Some text</td> <td>Some text</td> <td class="top">Some text</td> </tr> </table> </body> </html>