asp.net - How to set overlay on a page according to page height using CSS -
If JavaScript is disabled, then I want to set an overlay on top of my web site. Since the height of each page is different I am unable to set the overlay based on the page's height. What I am currently doing is that I am setting the maximum maximum height of 2000px as follows:
. OpenLine {background color: # 666666; Height: 2000px; Left: 0; Status: Completed; Top: 0; Width: 100%; Z-index: 1003; Opacity: 0.5; }
But this is not what I want. Because there is very little height compared to the height of the height mentioned in some pages and is more in some pages, therefore the overlay issue Is not more effective. I want to set the height of the overlays according to the height of the page. Can anyone tell me how can I get it using Javascript?
body, html {height: 100%; Width: 100%; Padding: 0; Margin: 0; }. Overlay {status: complete; Top: 0px; Left: 0px; Z-index: 999; Height: 100%; Width: 100%; Background: # c1c1c1; }
This should work overlay a & lt; Div & gt; Must be
.
Comments
Post a Comment