title: css and div tag layout problems
body: <p>I have a header bar that spans horizontally across my web page, which is comprised of one div tag and three nested div tags.</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="top-bar"&gt;
      &lt;div id="leftTop"&gt;
          LEFT
      &lt;/div&gt;
      &lt;div id="rightTop"&gt;
          RIGHT
      &lt;/div&gt;
      &lt;div id="centerTop"&gt;
          CENTER
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#top-bar
  {
      margin: 0;
      padding: 1px 4px;
      font-size: x-small;
      background-color: #005555;
      font-family: Arial;
  }
  #top-bar .separator
  {
      padding: 0 7px;
      border-right: 0px solid #fff;
      border-left: 0px solid #fff;
  }
  #leftTop
  {
      display: inline;
      float: left;
  }
  #rightTop
  {
      display: inline;
      float: right;
  }
  #centerTop
  {
      color: #ffffff;
      text-align: center;
  }
  </code></pre>
  
  <p>And it works just great, except for the fact that the div tags are out of order in the HTML code, which I don't like. If I order the div tags by placing them Left, Center, and Right, in the HTML, then the Right div just disappears from the webpage! I'm guessing that it has something to do with the float and text-align attributes having a conflict.</p>
  
  <p>Anyone have any ideas on what is going on here, or is there an easier way to do this in CSS?</p>