This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > August 2006 > SWF Height specifity





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author SWF Height specifity
jeddhorvath

2006-08-02, 10:46 am

Hi all,

I need to instruct a swf to fit my browser height OR expand beyond that
height, but NOT to be any smaller than the browser height. I wonder if you can
suggest a solution. Here's the details:

My site needs a swf sitting in the left margin to fill the browser window
height. However, if the site content is vertically long enough to warrant
scrolling down, I need for my margin swf to expand to the FULL height of the
page, not just what is viewable in the browser window.

I can accomplish this latter requirement by embedding the swf to fill 100%
height, sitting in a div tag which also holds the content. This div tag
doesn't have a style height set, so it expands to fit the content as need be.
This works fine, unless one of my page's content occupies only a small portion
of the browser height (so no scrolling required). In this case, the swf also
occupies a small portion of the browser height (100% of the content div).

My intuition is to instruct the content div to have a min-height of 100%, but
this doens't seem to work, and I know that this will cause problems in IE.
Does anyone perchance have a better idea?

Thanks,
j

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews