title: How to make "text-overflow: ellipsis" for both "float:left" and "float:right" div?
body: <p>I have a web design requirement to have a header like this:</p>
  
  <pre><code>+-------------------------------------------------------------+
  | +---------------------+  +-------++------------------------+|
  | | float left DIV A    |  | DIV C || float right DIV B      ||
  | +---------------------+  +-------++------------------------+|
  +-------------------------------------------------------------+
  </code></pre>
  
  <p>The header has 3 parts: Div A, B, C.
  The DIV A is float to left, while DIV B and C is float to right.
  DIV A and DIV B might contain long text. So overflow-ed text are truncated as ellipsis.
  DIV C has short text, its content should not be truncated.</p>
  
  <p>I tried to make HTML like below:</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;style&gt;
              .header
              {
                  width: 100%;
                  border: 2px red;
                  overflow: hidden;
              }
              .DivA
              {
                  float: left;
              }
              .DivC
              {
                  float: right;
                  white-space:nowrap;
              }
              .DivB
              {
                  float: right;
              }
              .clear
              {
                  clear: both;
              }
              .DivA, .DivB
              {
                  width: 40%;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
              }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="header"&gt;
              &lt;div class="DivA"&gt;
                  Hello world 1 Hello world 2 Hello world 3
                  Hello world 1 Hello world 2 Hello world 3
                  Hello world 1 Hello world 2 Hello world 3
              &lt;/div&gt;
              &lt;div class="DivB"&gt;
                  Good bye Good bye
                  Good bye Good bye
                  Good bye Good bye
              &lt;/div&gt;
              &lt;div class="DivC"&gt;
                  No Ellipsis
              &lt;/div&gt;
              &lt;div class="clear"&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The text-overflow:ellipsis only works if DIV A and DIV B have width(in my case, I set them to be 45%). </p>
  
  <p>However, there is one problem about DIV C. Since DIV C's width might be different in different localization, we cannot set its width explicitly. When narrowing down the browser window, the div C can be wrapped to next line. This looks bad.</p>
  
  <p>Is there any way to make DIV A and DIV B float to left and right respectively with overflow ellipsis, while at the same time DIV C can adapt to its best width?</p>