how to adjust div width based on other div postion <p>I have two div's one is <code>div-content</code>(red color) and second is <code>div-content2</code>(yellow color).<code>div-content</code> size is 0 to 50% and <code>div-content2</code> size 50% to 100%.</p> <p>Now In my screen 50% <code>div-content</code> and 50% <code>div-content2</code></p> <p>I need <code>div-content1</code> drag left to right <code>div-content1</code> width is 70 .In that time <code>div-content2</code> will be 30.if <code>div-content2</code> drag right to left width is 65 , in that time <code>div-content</code> width 35</p> <p>finely when increases and content remain content will auto adjust So Please give me any Idea.</p> <p>I am now to Stackoverflow .if i wrong to write Please guided me . </p> <p>Thanks in Advanced </p>