title: Messed up HTML/CSS design
body: <p><img src="https://i.stack.imgur.com/x6hud.png" alt="enter image description here"></p>
  
  <p>I'm just checking other people's works and Im fixing this design and I can't seem to have an idea on how to fix it. I don't want to change anything from the css so is it possible to just arrange it on html?</p>
  
  <pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
  &lt;title&gt;Clinical Module&lt;/title&gt;
  &lt;link href="style.css" rel="stylesheet" type="text/css" /&gt;
  &lt;link rel="stylesheet" href="inc/style.css" type="text/css"&gt;
  
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form action='' method='POST'&gt;&lt;center&gt;
  &lt;input type="text" placeholder="Patient Number" name="search" &gt; &lt;input type="submit" Value="Check" name='submit'&gt; &lt;br&gt;
  
  
  &lt;?php
  
  mysql_connect("localhost","root","");
  mysql_select_db("invoices");
  $search = 0;
  $search=$_POST['search'];
  if (isset($_POST['submit'])){
  
      $query = "select * from `patient` where `clientid` = $search ";
      $result=mysql_query($query);
  
  
  while($row = mysql_fetch_array($result)){ ?&gt;
  
  First name:&lt;br&gt;
  &lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &amp;nbsp;&lt;input type="text" size="20" name="first_name" value="&lt;?php echo $row["first_name"]?&gt;" &gt;&lt;/td&gt;
        &lt;td valign="top" width="10%" rowspan="13"&gt;
        &lt;/td&gt;
     &lt;/tr&gt;
     &lt;tr&gt;
  
        &lt;td valign="top" align="right"&gt;
        Middle name:&lt;/td&gt;
         &lt;td valign="top" align="left"&gt;
  &amp;nbsp;&lt;input type="text" size="20" name="middle_name" value="&lt;?php echo $row["middle_name"]?&gt;" &gt;&lt;/td&gt;
  
        &lt;/td&gt;
     &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td valign="top" align="right"&gt;
  Last Name:
  &lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &amp;nbsp;&lt;input type="text" name="last_name" size="20" value="&lt;?php echo $row["last_name"]?&gt;"&gt;&lt;/td&gt;
     &lt;/tr&gt;
   &lt;tr&gt;
        &lt;td valign="top" align="right"&gt;
  Birthdate
  &lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &amp;nbsp;&lt;input type="text" name="Birthdate" size="20" value="&lt;?php echo $row["birthdate"]; ?&gt;"&gt;&lt;/td&gt;
     &lt;/tr&gt;
   &lt;tr&gt;
        &lt;td valign="top" align="right"&gt;
  Age
  &lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &amp;nbsp;&lt;input  readonly type="text" name="age" size="20" value="&lt;?php echo $row["age"]?&gt;" placeholder="YYYY-MM-DD"&gt;&lt;/td&gt;
     &lt;/tr&gt;
  
     &lt;tr&gt; 
      &lt;td valign="top" align="right"&gt; Gender:&lt;/td&gt;
  
        &lt;td valign="top" align="left"&gt;&lt;select name="gender"&gt;
        &lt;? if ($row["gender"]==Male) { ?&gt;
        &lt;option value="Male" selected&gt;Male&lt;/option&gt;
        &lt;option value="Female"&gt;Female&lt;/option&gt; 
        &lt;? }else if ($row["gender"]==Female) { ?&gt;
        &lt;option value="Male" &gt;Male&lt;/option&gt;
        &lt;option value="Female" selected&gt;Female&lt;/option&gt;  &lt;?php }?&gt;      
      &lt;/select&gt;&lt;/tr&gt;
          &lt;/td&gt;&lt;tr&gt; 
      &lt;td valign="top" align="right"&gt; Civil Status:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;&lt;select name="civil_status"&gt;
        &lt;? if ($row["civil_status"]==Single) { ?&gt;
        &lt;option value="Single" selected &gt;Single&lt;/option&gt;
        &lt;option value="Married"&gt;Married&lt;/option&gt; 
        &lt;option value="Separatede"&gt;Separated&lt;/option&gt;
        &lt;option value="Widowed"&gt;Windowed&lt;/option&gt;
        &lt;? }else if ($row["civil_status"]==Married) { ?&gt;
        &lt;option value="Single" &gt;Single&lt;/option&gt;
        &lt;option value="Married" selected&gt;Married&lt;/option&gt; 
        &lt;option value="Separated"&gt;Separated&lt;/option&gt;
        &lt;option value="Widowed"&gt;Windowed&lt;/option&gt;
       &lt;? }else if ($row["civil_status"]==Separated) { ?&gt;
        &lt;option value="Single" &gt;Single&lt;/option&gt;
        &lt;option value="Married"&gt;Married&lt;/option&gt; 
        &lt;option value="Separated" selected&gt;Separated&lt;/option&gt;
        &lt;option value="Widowed"&gt;Windowed&lt;/option&gt;
  &lt;? }else if ($row["civil_status"]==Widowed) { ?&gt;
        &lt;option value="Single" &gt;Single&lt;/option&gt;
        &lt;option value="Married"&gt;Married&lt;/option&gt; 
        &lt;option value="Separated"&gt;Separated&lt;/option&gt;
        &lt;option value="Widowed" selected&gt;Windowed&lt;/option&gt;      &lt;?php }?&gt;
       &lt;/select&gt; 
           &lt;/td&gt;
      &lt;/tr&gt;    
   &lt;tr&gt;
        &lt;td valign="top" align="right" nowrap&gt;
  Address:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input type="text" name="address" value="&lt;?php echo $row["address"]?&gt;" size="31"&gt;&lt;/td&gt;
        &lt;/tr&gt;   
  
          &lt;tr&gt;
        &lt;td valign="top" align="right"&gt;
  Tel. no.:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input
   type="text" size="20" name="telno" placeholder="###-####" value="&lt;?php echo $row["telno"]?&gt;"&gt;&lt;/td&gt;&lt;/tr&gt;
   &lt;tr&gt;
        &lt;td valign="top" align="right"&gt;
  Occupation:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input
   type="text" size="20" name="occ" value="&lt;?php echo $row["occ"]?&gt;"&gt;&lt;/td&gt;&lt;/tr&gt;
   &lt;tr&gt;
        &lt;td align="right"&gt;
  Spouse:&lt;/td&gt;
        &lt;td &gt;
  &lt;input
   type="text" size="20" name="spo" value="&lt;?php echo $row["spo"]?&gt;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
    &lt;td align="right"&gt;
  Occupation:&lt;/td&gt;
        &lt;td &gt;
  &lt;input
   type="text" size="20" name="occ2" value="&lt;?php echo $row["occ2"]?&gt;"&gt;&lt;/td&gt;&lt;/tr&gt;
  
  
  
   &lt;tr&gt;
        &lt;td align="right" width="20"&gt;
  Contact Person(in case of emergency):&lt;/td&gt;
        &lt;td &gt;
  &lt;input
   type="text" size="20" name="cp" value="&lt;?php echo $row["cp"]?&gt;"&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;
    &lt;td align="right"&gt;
  Tel. no:&lt;/td&gt;
        &lt;td &gt;
  &lt;input
   type="text" size="20" name="tel2" value="&lt;?php echo $row["tel2"]?&gt;"&gt;&lt;/td&gt;&lt;/tr&gt;
  
  
  
        &lt;tr&gt;
        &lt;td valign="top" align="right" nowrap&gt;
  Reffered By:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input type="text" name="reff" value="&lt;?php echo $row["reff"]?&gt;" size="31" &gt;&lt;/td&gt;
        &lt;/tr&gt;
  
            &lt;tr&gt;
        &lt;td class=topHeadrow1 valign="middle" width="50%" colspan="2"&gt;
  Past Medical History:&lt;/td&gt;
        &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td valign="top" align="right" nowrap&gt;
  Allergy:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input type="text" name="all" value="&lt;?php echo $row["all"]?&gt;" size="31"&gt;&lt;/td&gt;
        &lt;/tr&gt; 
        &lt;tr&gt;
        &lt;td valign="top" align="right" nowrap&gt;
  Previous illness:&lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input type="text" name="ill" value="&lt;?php echo $row["ill"]?&gt;" size="31"&gt;&lt;/td&gt;
        &lt;/tr&gt;
  
      &lt;tr&gt;
       &lt;td class=topHeadrow1 valign="middle" width="50%" colspan="2"&gt;
  &lt;b&gt;&lt;font size="4"&gt;
  Heredo-Familial Diseases:&lt;/font&gt;&lt;/b&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td valign="top" align="right" nowrap&gt;
  Maternal:
       &lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input type="text" name="mat" value="&lt;?php echo $row["mat"]?&gt;" size="20"&gt;&lt;/td&gt;
        &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td valign="top" align="right" nowrap&gt;
  Fraternal:
       &lt;/td&gt;
        &lt;td valign="top" align="left"&gt;
  &lt;input type="text" name="frat" value="&lt;?php echo $row["frat"]?&gt;" size="20"&gt;&lt;/td&gt;
        &lt;/tr&gt;
  
  
  &lt;?  }
  }
  ?&gt;
  
  
  &lt;/center&gt;
  &lt;/form&gt;
  |
  </code></pre>