Is it possible to change a div‘s width live with jQuery? And if it is, how?
What I want is to change its width depending on the browser’s window width in real time, so if/when the user changes the browser window, the div‘s dimensions are changed as well in realtime.
You can use, which will be triggered when the window resizes.
If you want a DIV width as percentage of the screen, just use CSS
width : 80%;.