Here's an example for trying to set the width of a block div, help! need to make responsive width

function an() { $("div").click(function() { $("div").animate({ height: '466', margin: '-10', borderRadius: '0', width: 'window.innerWidth' }, 555); }); 

    1 answer 1

    I decided using css properties set to 100%

     function an() { $("div").click(function() { $("div").animate({ height: '100%', width: '100%', margin: '-10', borderRadius: '0' }, 555); }); 
    • I would certainly like to see the solution through window.innerWidth & document.documentElement.clientWidth - Vladimir Vladimirovich