html,body{ height: 100%; width: 100%; margin:0px; padding:0px; } #swt { height: 100%; width: 100%; z-index: 1; left: 0px; top: 0px; right: 0px; bottom: 0px; position: absolute; }