title: Bootstrap 4 table td width size customize
body: <p>I need to increase the rating column width but my w-9 doesn't work.. I want to expand the rating column.</p>
  
  <p><a href="https://i.stack.imgur.com/s7dnk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s7dnk.png" alt="Heres my table"></a></p>
  
  <p>Here's my table code:</p>
  
  <pre><code> &lt;table class="table table-bordered stick-top"&gt;
                  &lt;thead class="text-center" id="data"&gt;
                      &lt;tr&gt;
                          &lt;th&gt;&lt;/th&gt;
                          &lt;th&gt;Questions&lt;/th&gt;
                          &lt;th id="try"&gt;Rating&lt;/th&gt;
                      &lt;/tr&gt;
                  &lt;/thead&gt;
                  &lt;tbody class="body_data"&gt;
                      &lt;?php 
                          $jio=mysqli_query($conn,"SELECT * FROM question")or die ("error");
                          while(list($Question_ID,$Question_Description)=mysqli_fetch_array($jio))
                          { ?&gt;
                              &lt;tr&gt;
                              &lt;td&gt;&lt;?php echo $Question_ID; ?&gt;&lt;/td&gt;
                              &lt;td&gt;&lt;?php echo $Question_Description; ?&gt; &lt;/td&gt;
  
                              &lt;?php
                              $q1 = "SELECT * FROM rating ORDER BY Rating_ID ASC";
                              $r1 = $conn -&gt; query($q1);
                              echo "&lt;td class='w-9'";
                              while($row = $r1 -&gt; fetch_object()){
                                  echo "&lt;input id='radio' type='radio' name='radio$Question_ID' value='" . $row -&gt; Rating_ID . "' required&gt;". $row -&gt; Rating_ID;"";
                              }
                              echo "&lt;/td&gt;";
                               ?&gt;
                              &lt;/tr&gt;
                          &lt;?php } ?&gt;
  
                  &lt;/tbody&gt;
              &lt;/table&gt;
  </code></pre>