2009
10.27

Flash websites often require the need to display at 100% width and height, filling the browser screen and still carry a minimum width and height value so when the user makes the browser smaller, scroll bars appear.

Minimum size flash can be implemented in pure css…

#myswfid {
width: 100%;
height: 100%;
min-width: 500px;
min-height: 600px;
}
*html #myswfid {
width: expression(document.body.clientWidth < 500 ? "500px" : "100%");
height: expression(document.body.clientHeight < 600 ? "600px" : "100%");
}

However, you should use Flurl instead, it's much easier. :wink:

1 comment so far

Add Your Comment
  1. Cool Thanx for this!

    I still get a margin of about 5px or so on the bottom, when doing 100% height

    any ideas for this issue?