How does JQ make DIV stretch from the left and change the width of DIV

The

layout is the left and right DIV,. I want to drag the right edge of the left DIV to change its width, while the right DIV width also changes.
question:
now there is a problem that when I drag the right boundary of the left DIV to change its width, the width of the right DIV always changes from its right boundary, while the left boundary does not move. When I dragged the DIV on the left, it was covered by the DIV on the right. What I want is to make the width of the DIV on the right scale from its left boundary, while the right boundary remains the same.

Jun.17,2021

http://jsbin.com/hafozuj/13/e.

A Demo.

in your case, it is better to use absolute to locate

Menu