Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> table, td, th { border: 1px solid black; } table { border-collapse: collapse; width: 100%; } td { height: 50px; vertical-align: bottom; text-align: right; padding-right: 10px; } </style> </head> <body> <h2>Vertical alignment example</h2> <table> <tr> <th>Firstname</th> <th>Lastname</th> <th>Money</th> </tr> <tr> <td>Sherlock</td> <td>Holmes</td> <td>$300</td> </tr> <tr> <td>John</td> <td>Watson</td> <td>$250</td> </tr> <tr> <td>Mary</td> <td>Watson</td> <td>$500</td> </tr> </table> </body> </html>