jQuery Resize Event for Nice Responsive Layout

jQuery
// Resize the Body on .ready and .resize events
		$(document).ready(resized);
		$(window).resize(resized);

		function resized() {
			$('body').css({ 'width' : $(window).width() });
		}

This simple function will apply a width value to the body of the page to match the current screen size. For some bootstrap frameworks you will also need to include the following HTML in your header area:

<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=2.0" />