css - unable to make html table column fixed size (not auto expand according to Data) -


enter image description here

i have above data table. problem when data coming backend expand , make table awkard.

i want wrap whole data in particular fixed column size. colmn should not expanded. html code like:

<table width="100%" border="0" cellpadding="0" cellspacing="0" id="datatable" class="pretty searchtabel">    <thead>      <tr class="ac-trhd serchtr">        <!-- colmn(subject) want restrict expand -->        <th class="padng10">subject</th>         <!-- other clumn headers -->      </th>    </thead>     <tr>       <td class="padng10"><s:property value="subject" /></td>       <!-- other td -->     </tr>  </table>

plz help. in advance

to have fixed column widths, use table-layout: fixed; in css.


Comments

Popular posts from this blog

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -