title: How do I keep two divs on the same line?
body: <p>I've been working on a dropdown menu similar to suckerfish. I've got the dropdown side working now, but I have some images I'm trying to put on either side of the links. Right now I'm using a div the size of the image, then setting the <code>background-image</code> property to the image I need (so that it can change using the pseudo :hover class).</p>
  
  <p>Here is the CSS That applies:</p>
  
  
  
  <pre><code>ul#menu3 li {
      color: #000000;
      float: left;
      /*I've done a little playing around here, doesn't seem to do anything*/
      position: relative;
      /*margin-bottom:-1px;*/
  
      line-height: 31px;
      width: 10em;
      padding: none;
      font-weight: bold;
      display: block;
      vertical-align: middle;
      background-image: url(../../images/dropdown/button-tile.gif);
  }
  .imgDivRt {
      width: 20px;
      height: 31px;
      display: inline;
      float: right;
      vertical-align: middle;
      background-image: url(../../images/dropdown/button-right.gif);
  }
  .imgDivLt {
      width: 20px;
      height: 31px;
      display: inline;
      float: left;
      vertical-align: middle;
      background-image: url(../../images/dropdown/button-left.gif);
  }    
  </code></pre>
  
  <p>I was using selectors to save a little on having different classes, but internet explorer doesn't seem to support them :( </p>
  
  <p>Here is my HTML that applies:</p>
  
  <pre><code>&lt;li&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Option 1&lt;div class="imgDivRt"&gt;&lt;/div&gt;
  &lt;ul&gt;
      &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 1&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;
          &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sandwich&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sandwich&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sandwich&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sandwich&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sandwich&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sandwich&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 2&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt; 
      &lt;ul&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 1&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 2&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt; &lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 3&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 4&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 5&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
              &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 6&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 3&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 4&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 5&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Sub 6&lt;div class="imgDivRt"&gt;&lt;/div&gt;&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;div class="imgDivLt"&gt;&lt;/div&gt;Option 2&lt;div class="imgDivRt"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I'm not sure if there's a glitch in my code, or if I'm on the wrong track. It works in firefox, safari, and chrome, but not IE or opera, so I'm not sure if they're making up for stupidity or what. Ideally, the second image floats greedily to the right in the containing block. In the problem browsers, it sits the next line down (at the far right at least)</p>