Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

on window resize and on page load

// Bind to the resize event of the window object
$(window).on("resize", function () {
    // Set .right's width to the window width minus 480 pixels
    $(".content .right").width( $(this).width() - 480 );
// Invoke the resize event immediately
}).resize();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #window #resize #page #load
ADD COMMENT
Topic
Name
2+2 =