I use bootstrap ( link ) on my site, but I'm a little confused about using tables. Before loading, all of my TD cell tables had dynamic width, so TD had a larger width if the content was a long sentence and less if it was just 11-character text input. But right now, all my TD elements are the same width, and I cannot find a way to change this ...
This is my table:
<table id="table1" style="padding-top:10px;"> <tr> <td colspan="6" style="text-align:center;">TITLE</td> </tr> <tr> <td colspan="3" style="text-align:center;">SUBTITLE 1</td> <td colspan="3" style="text-align:center;">SUBTITLE 2</td> </tr> <tr> <td style="text-align:left;"><b>A.</b></td> <td>Data title 1</td> <td><input type="text" maxlength="11" size="11" name="input_a"></td> <td style="text-align:left;"><b>D.</b></td> <td>Data title 2</td> <td><input type="text" maxlength="11" size="11" name="input_b"></td> </tr> ... </table>
So, I want the "Data title X" cell to have a larger width as a cell with an input field smaller. If I give them manually style = "width: xyzpx;" the attribute has not changed anything.
How can I do that?
source share