There is an example table on the codepen https://codepen.io/geeny273/pen/vMvmLm?editors=1000 . The columns in the header and in the main part of the table do not match due to scrolling. How to make them match?
<html> <div> <div> <table border="" style="width: 100%"> <thead> <tr> <th style="width: 10%"> Name <th style="width: 20%"> Surname <th style="width: 20%"> Age <tr> </thead> </table> </div> <div style="height: 100px; overflow: auto;"> <table border="" style="width: 100%"> <tbody> <tr> <td style="width: 10%">name1 <td style="width: 20%">sname1 <td style="width: 20%">age1 </tr> <tr> <td>name2 <td>sname2 <td>age2 </tr> <tr> <td>name3 <td>sname3 <td>age3 </tr> <tr> <td>name4 <td>sname5 <td>age5 </tr> <tr> <td>name5 <td>sname6 <td>age6 </tr> <tr> <td>name7 <td>sname7 <td>age7 </tr> <tr> <td>name8 <td>sname8 <td>age8 </tr> </tbody> </table> </div> </div> </html>