HighDots Forums  

Getting a DIV to cover a whole PAGE instead of just the SCREEN

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Getting a DIV to cover a whole PAGE instead of just the SCREEN in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Steve
 
Posts: n/a

Default Getting a DIV to cover a whole PAGE instead of just the SCREEN - 04-12-2008 , 03:40 PM






Hi;

I was coding my first "light box" effect when I found out that the div
that I was using to gray out my page only covered the screen revealed
by the brower, not the whole HTML page.

I got around this with the javascript hack of setting the div height
to be the document height.

I heard that javascript is not necessary, that if the HTML & document
style height are set to 100% the problem will not exist.

That didn't work for me.

Can anyone provide me with an example?

The less script I use the happier I am.

Steve


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.