开发者

Vertically centering a Flash website in a small browser resolution

开发者 https://www.devze.com 2023-03-12 16:45 出处:网络
We have recently made a new Flash website for our company (http://www.hrhent.com). The Flash module itself is 800 pixels tall. We have CSS that centers a div horizontally and verti开发者_StackOverflow

We have recently made a new Flash website for our company (http://www.hrhent.com). The Flash module itself is 800 pixels tall. We have CSS that centers a div horizontally and verti开发者_StackOverflow社区cally that's wrapped around the Flash module (you can see the source of http://www.hrhent.com) and when someone is on a browser on a netbook or a smaller laptop (sub 15-inch, generally), they don't have enough vertical resolution (after the real estate used by the Windows start bar and browser toolbars) to see the entire site.

Whether you view the html page I've made (again, at http://www.hrhent.com) or you view the Flash module itself (http://www.hrhent.com/main_v10.swf) the top of the Flash module clips off the top of the browser. (To see the problem if you don't have a small laptop, just don't maximize your browser window and shrink it's vertical height.)

I understand why my CSS is behaving the way it is, due to the nature of the negative top margin, but is there any way to solve this issue?


One approach that may work is to use stage.stageHeight to find the browser's height and shift everything down based on that.

0

精彩评论

暂无评论...
验证码 换一张
取 消