title: How to stretch columns of dataTable to fit the data they represent?
body: <p>There is a dataTable :</p>
  
  <pre><code>&lt;table id="list_details_livraison" class="striped cell-hovered border bordered" data-searching="true"&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.article');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.lot');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.qtelivrer');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.pu');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.taxe');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.remise');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;?php echo _getText('detaillivraison.entete.prixtotal');?&gt;&lt;/th&gt;
              &lt;th style="text-align: center;"&gt;&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
      &lt;/tbody&gt;
  &lt;/table&gt;
  
  $(document).ready(function(){
      $('#list_details_livraison').attr('style', 'width:100%');
  
      $('#list_details_livraison').DataTable({
              responsive: true,
              "oLanguage": {
                  // switch lang here with a PHP variable 
                  "sUrl": "&lt;?php  echo RP_LANG ?&gt;fr_FR.txt",
              },
              "processing": true,
              "serverSide": true,
              ajax: "&lt;?php  echo RP_SSP ?&gt;server_processing_details_livraisons.php?livc_code=&lt;?php echo $data[0]['livc_code']; ?&gt;",  
              "aoColumnDefs": 
                  [
                  {
                      "aTargets": [7],
                      "mData": 7,
                      "mRender": function (data, type, full) {
                                  if (isDetailLivraisonValider(data)) {
                                      return '&lt;div style="text-align:center;"&gt;'+
                                              '&lt;span class="mif-checkmark mif-2x fg-lightGreen"&gt;&lt;/span&gt;'+
                                            '&lt;/div&gt;';
                                  } else {
                                      var livraison = '\''+full [1]+'\'';
                                      return '&lt;div style="text-align:center;"&gt;'+
                                              '&lt;a href="../../RestaurantLivraison/modifierDetail/'+ data +'" style="margin-right: 8px;"&gt;&lt;span class="mif-pencil mif-2x"&gt;&lt;/span&gt;&lt;/a&gt;'+
                                              '&lt;a href="#" id="staticDialog" onclick="afficheDlg(\''+ data +'\','+livraison+')" style="color:red;"&gt;&lt;span class="mif-cross mif-2x"&gt;&lt;/span&gt;&lt;/a&gt;'+
                                            '&lt;/div&gt;';
                                  }
                       }
                  }],
                  "aLengthMenu": [[10, 25,50,100, -1], [10, 25,50,100, "Tout"]],
                  "initComplete": function(settings, json) {
                                      var html = $(this).find("tbody").find("tr").html();
                                      if (html.indexOf("dataTables_empty") != -1)
                                          $("#btn_valider").hide();
                                  }
          });
  });
  </code></pre>
  
  <p>Even if the data to display has just 3 characters and the header label is just a 4 letters word then dataTable still use big space to occupy for the data :</p>
  
  <p><a href="https://i.stack.imgur.com/xkPYk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xkPYk.png" alt="enter image description here"></a></p>
  
  <p>How to make for example the fifth column , taxe , sized appropriately to have no more wasteful spaces ?</p>