title: extend css form through php code
body: <p>I have the below php MySQL query code and want to present the results in a table within a form. </p>
  
  <pre><code>            &lt;?php
                      $query = "SELECT * FROM persons order by date_entered DESC LIMIT 5";
                      $response = mysqli_query($con, $query);
                      if($response){
                      echo '&lt;div id="frm"&gt; &lt;h2&gt; Last 5 candidates entered &lt;/h2&gt; &lt;table align="left"&gt;
                      &lt;tr&gt;
                              &lt;td align="left"&gt;&lt;b&gt;First Name&lt;/b&gt;&lt;/td&gt;
                              &lt;td align="left"&gt;&lt;b&gt;Email&lt;/b&gt;&lt;/td&gt;
                              &lt;td align="left"&gt;&lt;b&gt;Sex&lt;/b&gt;&lt;/td&gt;
                              &lt;td align="left"&gt;&lt;b&gt;City&lt;/b&gt;&lt;/td&gt;
                              &lt;td align="left"&gt;&lt;b&gt;Phone Number&lt;/b&gt;&lt;/td&gt;
                              &lt;td align="left"&gt;&lt;b&gt;Education&lt;/b&gt;&lt;/td&gt;
                              &lt;td align="left"&gt;&lt;b&gt;Salary&lt;/b&gt;&lt;/td&gt;
                      &lt;/tr&gt;';
  
                      while($row = mysqli_fetch_array($response)){
                      echo '&lt;tr&gt;
                              &lt;td align="left"&gt;' . '&lt;a href="person.php?id=' . $row["person_id"] . '"&gt;' . $row["first_name"] . " " .$row['last_name'] . '&lt;/a&gt;' . '&lt;/td&gt;
                              &lt;td align="left"&gt;' . $row['email'] . '&lt;/td&gt;
                              &lt;td align="left"&gt;' . $row['sex'] . '&lt;/td&gt;
                              &lt;td align="left"&gt;' . $row['city'] . '&lt;/td&gt;
                              &lt;td align="left"&gt;' . $row['phone'] . '&lt;/td&gt;
                              &lt;td align="left"&gt;' . $row['education'] . '&lt;/td&gt;
                              &lt;td align="left"&gt;' . $row['salary'] . '&lt;/td&gt;';
                      echo '&lt;/tr&gt;';
                      }
                      echo '&lt;/table&gt;';
                      } else {
                      echo "Couldn't issue database query&lt;br /&gt;";
                      echo mysqli_error($con);
                      }
                      mysqli_close($con);
              ?&gt;
  </code></pre>
  
  <p>The form is defined in CSS style with the height set to auto however, the form dimensions do not extend to the length of the results, it only goes 160px and then stops with the rest of the query results displayed in the body.</p>
  
  <pre><code>#frm {
  align: center;
  font-family: "verdana";
  font-size: 13px;
  border: solid gray 1px;
  width: 700px;
  height: auto;
  border-radius: 2px;
  margin-left: auto;
  margin-right: auto;
  background: white;
  padding: 50px;
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/i1OJX.png" rel="nofollow noreferrer">form not extending to the length of results</a></p>
  
  <p>My obvious question is, how do I make the form extend to the length of results?</p>
  
  <p>Thanks!</p>