How do I change the height of an HTML table when a link is clicked?
Hey. I would like to change the height of an HTML table from 690 to 400 in 2 seconds on a smooth transition by clicking a button. Is there a way to do this in pure CSS? Here's my example:
<html>
<head>
<title>Test</title>
</head>
<body>
<table>
<tr>
<td>
<button type="button">Click Me!</button>
</td>
</tr>
<tr>
<td height="690" width="1280> <--- This cell needs it height to change to 400px when the button is clicked.
Cell 1
</td>
</tr>
</table>
</body>
</html>
+3
source to share