I\'m trying to figure out how to have a div dynamically resize, based on the size of the browser window. I\'ve set up a jsbin that illustrates my problem, here: http://jsbin
You can try to bind to the resize event of the browser's window.
For example:
window.onresize = function() { //your code }