<script> $(window).resize(function () { if($(window).width() > 1020){ $('#container').css('width', '1000px'); else $('#container').css('width', '600px'); }); </script>
#container { /*css styles*/ width: 600px; } @media (min-width: 1020px) { #container { width: 1000px; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)