| Author |
forcing html to fit to exact size of swf
|
|
| scaggnetti 2006-04-21, 6:41 pm |
| When I publish the html how can I force the html page to be the exact number of
pixels as the swf? I would like it to have no space or html background left,
right, top, or bottom.
I tried adding:
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
to the body portion of the html because I read it in an earlier post and that
eliminated the left and top portions. Now how do I get rid of the left and
bottom spaces and background.
Thanks in advance.
| |
| Christoph Varjas 2006-04-23, 3:34 am |
| Are you looking to resize the browser to fit your swf file exactly? So that
the swf doesnt scale but the browser window does?
Or do you want to simply remove the small html border that defaults around the
swf? So that it is flush up against the edges of browser window if it is
resized?
| |
| cecilomar 2006-04-24, 10:45 pm |
| This is good only if you are using a page inside a pop up because it
will resize the window to a specified width and height but if you have
toolbars the visible part of the page will be less than the specified.
This is a Javasript that you have to put between the <head> tags of you
page.
<script language="JavaScript">
<!--
// This will resize the window when it is opened or
// width is placed first, height is placed second
window.resizeTo(500,500)
-->
</script>
That's all.
| |
|
|
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |