Skip to content

Instantly share code, notes, and snippets.

@emj365
Created June 24, 2011 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emj365/1044024 to your computer and use it in GitHub Desktop.
Save emj365/1044024 to your computer and use it in GitHub Desktop.
css overlay
#over_div {
position:fixed;
top:0;
left:0;
z-index:1987;
width:100%;
height:100%;
background:#000;
filter:alpha(opacity=70);
opacity:0.7;
}
/*IE6 fixed*/
* html {
background:url(*) fixed;
}
* html body {
margin:0;
height:100%;
}
* html #over_div {
position: absolute;
left: expression(documentElement.scrollLeft + documentElement.clientWidth - this.offsetWidth);
top: expression(documentElement.scrollTop + documentElement.clientHeight - this.offsetHeight);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment