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

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -