You can set a table width and height using width and height attributes. Specifications can be made in width or height using pixels or percentage of available media screen.
Example
<!DOCTYPE html>
<html>
<head>
<title>Scholars Table Width/Height</title>
</head>
<body>
<table border="1" width="400" height="150">
<tr>
<td>Row 1, Column 1</td>
<td>Row 1, Column 2</td>
</tr>
<tr>
<td>Row 2, Column 1</td>
<td>Row 2, Column 2</td>
</tr>
</table>
</body>
</html>
No comments:
Post a comment