CodeLab
Tutorials For Everyone
Run
<!Doctype HTML> <html> <head> <title>CSS Tables - width and height</title> <style> table, th, td{ border: 1px solid #000; } table{ width: 100%; } th{ height: 100px; } </style> </head> <body> <h2>CSS table width and height</h2> <table> <tr> <th>User</th> <th>ID</th> <th>Password</th> </tr> <tbody> <tr> <td>joh</td> <td>john_123</td> <td>iAMjon_123</td> </tr> <tr> <td>Nikita</td> <td>niki_007</td> <td>007_niki</td> </tr> <tr> <td>Maria</td> <td>maria</td> <td>maria-9987</td> </tr> <tr> <td>Adam</td> <td>adam187</td> <td>noBodyLikesMe_187</td> </tr> </tbody> </table> </body> </html>