CSS – Use calc() to keep widths of elements the same
Use CSS variables: <style> :root { –width: 100px; } /* Set the variable –width */ table td{ width: var(–width); /* use it to set the width of TD elements */ border: 1px solid; } </style> <table> <tr> <td class=”tab”>elementOne</td> <td class=”tab”>elementtwo</td> </tr> </table> <!– reuse the variable to set the width of the DIV element … Read more