1// Bind to the resize event of the window object
2$(window).on("resize", function () {
3 // Set .right's width to the window width minus 480 pixels
4 $(".content .right").width( $(this).width() - 480 );
5// Invoke the resize event immediately
6}).resize();