input{ display:block; margin:0 45px; text-indent:5px; } $('input').css({width:$(window).width()-90});