title: mpdf columns width is not getting fixed and increases with data
body: <p>I am creating a pdf of 9 columns using mpdf that shows a list of users In each row, 1 column is used for photograph. My problem is that I want the columns to be almost equal in width but in result, I am getting columns with different widths. </p>
  
  <p>I have tried to set CSS of table as well as through mpdf option, but none of them worked.
  My code is as under:</p>
  
  <pre><code>$a='&lt;style&gt;@page {
   margin: 10pt;
  }&lt;/style&gt;';
  $a .= '&lt;table autosize="1" border="1" class="atable" style="font-family:Arial"&gt;&lt;tr&gt;
  &lt;th style="min-width: 60pt;max-width: 60pt; font-size:7pt"&gt;Sr.&lt;br&gt;No.&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 60pt; font-size:7pt"&gt;Admission No.&lt;br&gt;Boarder/DayScholar&lt;br&gt;Admit Class&lt;br&gt;Admit Date&lt;br&gt;Exit Class&lt;br&gt;Exit Date&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 60pt; font-size:7pt"&gt;Photograph&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 60pt; font-size:7pt"&gt;Student Details&lt;br&gt;[Student Name&lt;br&gt;Father Name&lt;br&gt;Father Occupation&lt;br&gt;Mother Name&lt;br&gt;Mother Occupation]&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 60pt; font-size:7pt"&gt;Date of Birth&lt;br&gt;Current Class&lt;br&gt;Current City&lt;br&gt;Board Roll No.&lt;br&gt;Percentage&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 70pt; font-size:7pt"&gt;Old Details&lt;br&gt;[Address&lt;br&gt;Father Email&lt;br&gt;Father Mobile]&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 75pt; font-size:7pt"&gt;Present Profile&lt;br&gt;(Alumi,&lt;br&gt;Ex-Student,&lt;br&gt;Current Student)&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 65pt; font-size:7pt"&gt;Contact Details&lt;br&gt;[Email Id&lt;br&gt;Mobile&lt;br&gt;Father Mobile&lt;br&gt;Facebook Id&lt;br&gt;Twitter Id&lt;br&gt;Linked In Id]&lt;/th&gt;
  &lt;th style="min-width: 60pt;max-width: 65pt; font-size:7pt"&gt;Remarks&lt;/th&gt;
  &lt;/tr&gt;&lt;tr&gt;'
  
  //Here goes the data fetching php code followed by the below code
  
  &lt;td style="font-size: 10pt !important; text-align:center;"&gt;' . ++$i . '&lt;/td&gt;
  &lt;td style="font-size:10pt !important; text-align:center;"&gt;' . $row['adm_no'] .'&lt;br&gt;&lt;font color="green"&gt;' . $row['d_b'] . '&lt;/font&gt;&lt;br&gt;' . $row['adm_class'] . '&lt;br&gt;&lt;font color="green"&gt;' . $fadmdate . '&lt;/font&gt;&lt;br&gt;' . $row['exit_class'] . '&lt;br&gt;&lt;font color="green"&gt;' . $fexit . '&lt;/font&gt;&lt;/td&gt;
  &lt;td style="font-size:10pt !important; text-align:center;"&gt;'. '&lt;div id="testimage"&gt;&lt;img src="' . $gdImage . '" width="60pt" /&gt;&lt;/div&gt;&lt;/td&gt;&lt;td style="font-size:10pt !important; text-align:center;"&gt;'. $row['stu_name'] .
     '&lt;br&gt;&lt;font color="green"&gt;' . $row['fat_name'] .  '&lt;/font&gt;&lt;br&gt;' . $row['fat_occ'] . '&lt;br&gt;&lt;font color="green"&gt;' . $row['mot_name'] . '&lt;/font&gt;&lt;br&gt;' . $row['mot_occ'] . '&lt;/td&gt;
  &lt;td style="font-size:10pt !important; text-align:center;"&gt;'.
     $fdob . '&lt;br&gt;&lt;font color="green"&gt;' . $row['stu_class'] . '&lt;/font&gt;&lt;br&gt;' . $row['cur_city'] . '&lt;br&gt;&lt;font color="green"&gt;' .$row['board_roll'] . '&lt;/font&gt;&lt;br&gt;' . $row['perc'] . '&lt;/td&gt;
  &lt;td style="font-size:10pt !important; text-align:center;"&gt;'.
     $row['addr']. '&lt;br&gt;&lt;font color="green"&gt;' . $row['fat_email'] . '&lt;/font&gt;&lt;br&gt;' . $row['fat_mob'] . '&lt;/td&gt;
  &lt;td style="font-size:10pt !important; text-align:center;"&gt;'.
     $cprofile .'&lt;/td&gt;
  &lt;td style="font-size:10pt !important; text-align:center;"&gt;' . $row['email_id'] .'&lt;br&gt;&lt;font color="green"&gt;' . $row['phone_no'] . '&lt;/font&gt;&lt;br&gt;' . $row['fb_id'] . '&lt;br&gt;&lt;font class="green"&gt;' . $row['twitter_id'] . '&lt;/font&gt;&lt;br&gt;' . $row['linkedin_id'] . '&lt;/td&gt;&lt;td style="font-size:10pt !important; text-align:left;"&gt;SMS:&lt;br&gt;&lt;font color="green"&gt;Email:&lt;/font&gt;&lt;br&gt;FB:&lt;/td&gt;
  &lt;/tr&gt;&lt;/table&gt;
  &lt;?php
  include("\mpdf\mpdf.php");
  $mpdf=new mPDF('','A4');
  $keep_table_proportions = TRUE;
  $mpdf-&gt;shrink_tables_to_fit=1;
  $mpdf-&gt;setFooter('Details    ::: ' . date("d/m/Y") . ' :::            {PAGENO} / {nb}');
  $mpdf-&gt;WriteHTML($a);
  $mpdf-&gt;Output('mytable.pdf', 'D');
  exit;
  </code></pre>
  
  <p>Even after setting max width to 70pt, The Old details column takes around 25% of the page width due to which other columns are squeezed badly and look goes weird and also the footer is no more visible.</p>