title: HTML creating space around input text?
body: <p>page is available here: <a href="http://macrorevolution.com/calculators/bmr/" rel="nofollow">http://macrorevolution.com/calculators/bmr/</a></p>
  
  <p>How do I go about creating space after my input[text] box. For example, I want to create 1px spacing between the input box and "Years","ft","In"."k/cal per day".</p>
  
  <p>I tried using .ipadding but that didn't work so ignore it. Also, how can I shift all of the input boxes closer to "Age", "Height", "weight"?</p>
  
  <p>I am new to html/css.</p>
  
  <pre><code>&lt;?php
  $answer = "";
  $agev = "";
  $feetv = "";
  $inchesv = "";
  $weightv = "";
  $sex = "";
  if(isset($_POST['agev']) &amp;&amp; isset($_POST['feetv']) &amp;&amp; isset($_POST['inchesv']) &amp;&amp; isset($_POST['weightv']) &amp;&amp; isset($_POST['sex'])) {
      $agev = $_POST['agev'];
      $feetv = $_POST['feetv'];
      $inchesv = $_POST['inchesv'];
      $weightv = $_POST['weightv'];
      $sex = $_POST['sex'];
      $totalheightv = $inchesv + ($feetv*12);
      $heightcm = $totalheightv*2.54;
      $weightkg = $weightv/2.2;
      if($sex=='male') $answer = round((66.47 + (13.75*$weightkg) + (5*$heightcm) - (6.75*$agev)),0);
      if($sex=='female') $answer = round((665.09 + (9.56*$weightkg) + (1.84*$heightcm) - (4.67*$agev)),0);
  
  }
  ?&gt;
  
  
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" &gt;
  &lt;title&gt;Basal Metabolic Rate Calculator&lt;/title&gt;
  &lt;style&gt;
    table {
        border: 30px;
      font-size:13px;
      font-family: 'PT Sans', sans-serif;
      background-color:#FFFFFF;
    }
  tr.spaceUnder &gt; td
  {
    padding:0em 1em 1em 0em;
  
  }
  p.ss {
      font-size:30px; 
  }
  .ipadding {
      padding:1px;
  }
  
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div class="box pt20"&gt;
  &lt;p class="ss"&gt;MacroRevolution BMR Calculator&lt;/p&gt;&lt;br&gt;
  &lt;table width='80%' style="margin: 0 auto;"&gt;
      &lt;tr class="spaceUnder"&gt;
      &lt;td colspan="4"&gt;
  BMR = Basal Metabolic Rate (similar to RMR = Resting Metabolic Rate). Your BMR represents the number of calories your body burns at rest. Regular routine of cardiovascular exercise can increase your BMR, improving your health and fitness when your body's ability to burn energy gradually slows down.
      &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  
  &lt;form method='post' action=''&gt;
  &lt;table width='80%' style="margin: 0 auto;"&gt;
  
  
      &lt;tr class="spaceUnder"&gt;
          &lt;td&gt;Age:&lt;/td&gt;
          &lt;td&gt;&lt;input type='text' name='agev' value="&lt;?php echo $agev; ?&gt;"/&gt;Years&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="spaceUnder"&gt;
          &lt;td&gt;Height:&lt;/td&gt;
          &lt;td align="justify"&gt;&lt;input type='text' name='feetv' value="&lt;?php echo $feetv; ?&gt;"/&gt;Ft&lt;p&gt;   &lt;/p&gt;
  
          &lt;input type='text' name='inchesv' value="&lt;?php echo $inchesv; ?&gt;"/&gt;In&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="spaceUnder"&gt;
          &lt;td&gt;Weight:&lt;/td&gt;
          &lt;td align="left"&gt;&lt;input type='text' name='weightv' value="&lt;?php echo $weightv; ?&gt;"/&gt;lbs&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="spaceUnder"&gt;
          &lt;td colspan="2"&gt;&lt;input type='radio' name='sex' value='male'&gt;Male
                          &lt;input type='radio' name='sex' value='female'&gt;Female&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="spaceUnder"&gt;
          &lt;td colspan="2"&gt;&lt;input type='submit' class="button highlight small" value='Calculate'/&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr class="spaceUnder"&gt;
          &lt;td colspan="2"&gt;Your BMR is &lt;input type='text' style="width: 50px;" value='&lt;?php echo $answer?&gt;' /&gt;k/cal per day  &lt;/td&gt;
      &lt;/tr&gt;
  
  &lt;/table&gt;
  &lt;/form&gt;
  
  
  &lt;table border='0' width='80%' style="margin: 0 auto;"&gt;
      &lt;td colspan="4"&gt;
  
      Formula for BMR
      If you want to manually calculate your BMR, use the (&lt;a href="http://en.wikipedia.org/wiki/Harris%E2%80%93Benedict_equation"&gt;Harris-Benedict formula&lt;/a&gt;) &lt;br&gt; below. &lt;br&gt;&lt;br&gt;
  Men: BMR=66.47+ (13.75 x W) + (5.0 x H) - (6.75 x A) &lt;br&gt;
  Women: BMR=665.09 + (9.56 x W) + (1.84 x H) - (4.67 x A) &lt;br&gt;&lt;br&gt;
  
      W = Weight in kilograms (lbs/2.2)&lt;br&gt;
      H = Height in centimeters (inches x 2.54)&lt;br&gt;
      A = Age in years &lt;br&gt;&lt;br&gt;&lt;br&gt;
      &lt;/td&gt;
  &lt;/table&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>