Any element can be made resizable if we apply the folowing CSS to it:
Please note that it will work only if the
overflow property is set to something other than visible. We can even combine the resize with something like
max-with to set specific bonds for it. Also, any attributes like
offsetWidth will be updated to the new sizes.