jasmine825 jasmine825 - 3 months ago 9
HTML Question

How can I increase the width of a column in a table?

The input of "file name" is a long variable, I tried changing the width for the

<th>
and the
<td>
but nothing seemed to work. Then I decided to put the
whitespace: nowrap;
however when I did that it clashed with my other columns and the writing for filename just went over them. How can I fix this?

<table class="responstable" rules='all' style='border-collapse: collapse;'>
<thead>
<tr>
<th>ID</th>
<th>Client id</th>
<th>File Name</th>
<th>Payer ID</th>
<th>Patient_f_name</th>
<th>Patient_l_name</th>
<th>cpt_code</th>
<th>insurance_voucher</th>
<th>paitent_id</th>
<th>acc_number</th>
<th>service_dos</th>
<th>local_charge_number</th>
<th>charge_amount</th>
<th>insurance_name_insurance_company</th>
<th>paid_amount_payment</th>
<th>paid_amount_vouchers</th>
</tr>
</thead>
<?php
while($row = pg_fetch_array($result))
{
?>

<tbody>


<tr <?=$row['flag'] ? "style='background-color: #fcf8e3'" : '';?>>

<td><?php echo $row['voucher_id']; ?></td>
<td><?php echo $row['client_id']; ?></td>
<td style="white-space: nowrap"><?php echo $row['file_name']; ?></td>
<td><?php echo $row['payer_id']; ?></td>
<td><?php echo $row['patient_f_name']; ?></td>
<td><?php echo $row['patient_l_name']; ?></td>
<td><?php echo $row['cpt_code'];?></td>
<td><?php echo $row['insurance'];?></td>
<td><?php echo $row['patient_id'] ?></td>
<td><?php echo $row['acc_number'] ?></td>

Answer
{width:700px};

Put this in your css style.