views:

39

answers:

1

Hi there,

I have a Flash file embedded into HTML - the objects inside are place based on the browser's screen size.

Most of the time I don't want a scroll bar, as things are correctly placed, but once the browser window gets too small it'd be nice to have it.

So, the main question: can I have a Javascript code listening for the browser window, then adding a scroll bar if it's smaller than a certain number?

Many thanks!!

-m

+1  A: 

For IE > 6 and all other major browsers, you don't even need JavaScript, a

body { min-height: 150px } 

should do.

Compatibility info on min-height on Quirksmode.org

Pekka
Thanks! That did it...
mvita
@mvita: Be a mensch and mark this question answered, please! :)
Robusto