title: HTML — Two Tables Horizontally Side by Side
body: <p>I'm trying to display tables next to each other horizontally, but this is what I'm getting.<br>
  <img src="https://i.stack.imgur.com/Ojg3l.png" alt="enter image description here">  </p>
  
  <pre><code>&lt;tr&gt;
  &lt;th&gt;
        &lt;span onclick="toggleDiv('favData', 'favDataImg')" style="cursor: hand;"&gt;Favorites &lt;img   name="favDataImg" src="../images/minus.gif" /&gt;&lt;/span&gt;
  &lt;/th&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
      &lt;td style="width: 300px; text-align: left; padding-right: 30px;"&gt;
  &lt;div id="favData" style="display: block;"&gt;
  &lt;fieldset style="width: 240px;"&gt;
  &lt;legend&gt;Favorites&lt;/legend&gt;
  &lt;table border="0" align="left"&gt;
  
  &lt;input type="radio" name="publicRadio" value="Public" &gt;Public: &lt;/input&gt;
  
  &lt;select  name="publicDropDown"&gt;
  &lt;option value="Public Dropdown" selected="selected"&gt;Public Dropdown&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;br&gt;&lt;br&gt;
  &lt;input type="radio" name="userRadio" value="User" &gt;User: &lt;/input&gt;
  
  &lt;select  name="userDropDown"&gt;
  &lt;option value="User Dropdown" selected="selected"&gt;User Dropdown&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;br&gt;&lt;br&gt;
  &lt;input type="radio" name="customRadio" value="Custom" &gt;Custom: &lt;/input&gt;
  
  &lt;/table&gt;
  &lt;/fieldset&gt;
  
  
  &lt;fieldset style="width: 240px;"&gt;
  &lt;legend&gt;Favorites&lt;/legend&gt;
  &lt;table border="0" align="left"&gt;
  
  &lt;input type="radio" name="publicRadio" value="Public" &gt;Public: &lt;/input&gt;
  
  &lt;select  name="publicDropDown"&gt;
  &lt;option value="Public Dropdown" selected="selected"&gt;Public Dropdown&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;br&gt;&lt;br&gt;
  &lt;input type="radio" name="userRadio" value="User" &gt;User: &lt;/input&gt;
  
  &lt;select  name="userDropDown"&gt;
  &lt;option value="User Dropdown" selected="selected"&gt;User Dropdown&lt;/option&gt;
  &lt;/select&gt;
  
  &lt;br&gt;&lt;br&gt;
  &lt;input type="radio" name="customRadio" value="Custom" &gt;Custom: &lt;/input&gt;
  
  &lt;/table&gt;
  &lt;/fieldset&gt;
  
  
  
  &lt;/div&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>