<html> <head> <style> table { empty-cells: show; } </style> </head> <body> <table border="1" id="thetable"> <thead> <tr> <th>col1</th> <th>col2</th> <th>col3</th> <th>col4</th> <th>col5</th> </tr> </thead> <tbody style="overflow-y:auto;overflow-x:hidden;"> <tr> <td>val1</td> <td></td> <td><input maxlength="6" type="text" id="input" value="text" size="6" /></td> <td></td> <td></td> </tr> <tr> <td>val2</td> <td></td> <td></td> <td></td> <td></td> </tr> </tbody> </table> </body> </html>