The center divider can be dragged to resize the left and right divs. It appears that dragging the divider will change the CSS width
value as a percentage, but I don't know what's causing that value to change.
I'd like to create something similar to this, where a divider can be dragged to resize the left and right divs, and any content inside those divs will be fitted. How can this be done?
Potential compatibility issue to avoid: Eventually, I'd also like to make it responsive on mobile screens using @media
to hide the right div while the left is visible, and hide the left div when the right is visible.