I have problem with content of my webpage. I need on same line 3 div where 1st is floated left with static width, 3rd is floated left/right (I have no problem with left or right) with static width and 2nd div must have width as space between 1st and 3rd element.
For example:
- window has width 1920px , 1st div has width 200px and float left, 3rd div has width 200px and flaoted left => 2nd div has width 1520px
Next example:
- window has width 1000px , 1st div has width 200px and float left, 3rd div has width 200px and flaoted left => 2nd div has width 600px
=> different widths of window makes different width of div2 and I need solved this problem on every width of screen.
I try 2nd div as "display: block; margin-left: -200px; margin-right: -200px;", but this not work. This solution work only if I have only 1st nd 2nd div.
Percentages is not solution because 1% on width 1000px is different number as 1% on 500px etc..
I can solved this with Javascript, but I search for CSS solution becasuse if I used resize then i must call JS still and it is ugly. Is it possible?