I have 3 divs within a div as follows:
<div id="header">
<div id="div1">
<a class="menuSelector">
<span class="menuSeletedText">Contacts very long caption xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyx</span>
<div class="menuSelectorButton"></div>
</a>
</div>
<div id="div2"> at CUSTOMER NAME</div>
<div id="div3">
<div>
<div id="filterdropdown" class="filterdropdown">
<a class="menuSelector">
<span class="menuSeletedText">Very long filter Name 12346666666667889999999999999999999999999999999999999910</span>
<div class="menuSelectorButton"></div>
</a>
</div>
</div>
</div>
</div>

Ideally I would like to say that div1 is 30% of the total width and div2 is 30% and div3 is 40%. If for e.g div3 (the div on the right) doesn't occupy 40%, for argument sake takes only 35%, then the remaining 5% is divided equally into div1 and div2. If div3 takes more than 40% then an elipses appears for the overflowing content. Any solution in jquery would be appreciated.
div2anddiv3,div3will have width 42.5%, which you don't want (you want to use an ellipsis and truncate content over 40% width).35%wide, you said you want the remaining5%to be divided between the other two. This makes the last div40 + 2.5 = 42.5%wide, which you do not want. Do you see the contradiction?