I have this problem, I can not find a solution for it:
I have 3 div s, two of them are located inside the third.
div that contains others has a percentage width.
The second, which is inside the first, does not have a certain width and floats to the left.
The third, which is also inside the first, has a certain width and floats to the right.
The question is how to make the second div as wide as possible?
Because it matches the default content.
<div id="a"> <div id="b"> </div> <div id="c"> </div> </div> <style> #a{ width: 80%; } #b{ width: ??; float:left; } #c{ width: 50px; float:right; } </style>
Ameen source share