Forum Moderators: not2easy

Message Too Old, No Replies

Issue of Maximum Height for DIV

div transparent problem when height of page more than 33000px

         

jackypeh

3:37 am on Jan 11, 2008 (gmt 0)

10+ Year Member



I have dynamic layer which is transparent, the style is as below:

#bodyS{
visibility:hidden;
position:absolute;
top:1px;
left:1px;
filter:alpha(opacity=50);
-moz-opacity:0.5;
-khtml-opacity: 0.5;
opacity: 0.5;
background-color:#CCCCCC;
z-index:5;
}

i will set the height of the layer in javascript like this:-
document.getElementById("bodyS").style.height=document.body.clientHeight+'px';

when the height of the page is more than 33000px, the transparent property will not work!

Does anybody face this issue and have solution for this?

SuzyUK

11:01 am on Jan 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi jackypeh and Welcome to WebmasterWorld!

The technicalities are above my head - but the value is actually 32768 pixels [google.com] and that search shows a lot of technical talk about mapping etc.. the figure seems like it's a constant.