I have a simple DIV container that has 2 div child elements in it.
I want the 1st element to set the width of the parent container, and the 2nd element to fit the available width.
I have this simple JSFiddle that shows my attempts. I want the red element's width to match the blue one.
<div class="container">
<div class="first">
first element
</div>
<div class="second">
second element with more characters
</div>
</div>
Maybe a different layout will help me get what I want, or some specific css trick. I'd be happy with anything that might work.