# How to make web page to fit in html window completely?

**URL:** <https://forum.kirupa.com/t/how-to-make-web-page-to-fit-in-html-window-completely/285593>\
**Category:** flash\
**Created:** [April 2, 2009, 6:39pm UTC](https://forum.kirupa.com/t/how-to-make-web-page-to-fit-in-html-window-completely/285593 "2009-04-02T18:39:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lope](https://avatars.discourse-cdn.com/v4/letter/l/43a26b/32.png) [@lope](https://forum.kirupa.com/u/lope)\
**Post date:** [April 2, 2009, 6:39pm UTC](https://forum.kirupa.com/t/how-to-make-web-page-to-fit-in-html-window-completely/285593/1 "2009-04-02T18:39:37Z")

</div>

When working in flash I can control size of my web like so (and other alignments):  
some\_background.width = stage.stageWidth;  
some\_background.height = stage.stageHeight;  
And with resize and fullscreen functions web is always going to populate size of a flash window.

And lets say I make 1280x1024 web, when I publish it, it is going to be that size in a browser window.  
But how do I make it fir browser windows completely whatever the size of it?  
Where am I making the mistake?
