To insert code use <code>...</code>.
CLOSED - styled tables - make columns same width
  • Right now each column width is based on the amount of text in the header, or it resizes to the smallest it can based on the data in the column. I was wondering if it is possible to just make all columns a uniform width in a styled table. Thanks
  • 4 Comments sorted by
  • nevermind, I think the basic html code for should work. I can specify in pixels or %.

    I'll try it out at least.
  • It won't work. Any ideas? Thanks!
  • Hi,
    Maybe you can try

    [styled_table]
    <table>
    <thead>
    <tr>
    <th scope="col" style="width:25%"><strong>Company</strong></th>
    <th scope="col" style="width:25%">Header 1</th>
    <th scope="col" style="width:25%">Header 2</th>
    <th scope="col" style="width:25%">Header 3</th>
    <th scope="col" style="width:25%">Header 4</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td>Company 1</td>
    <td>Division</td>
    <td>Division</td>
    <td>Division</td>
    <td>Division</td>
    </tr>
    </tbody>
    </table>
    [/styled_table]


    Regards,
    KaptinLin
  • I see!! Thanks again!
This discussion has been closed.
All Discussions