Skip to content

Instantly share code, notes, and snippets.

@ewillhite
Created June 10, 2013 16:32
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ewillhite/5750188 to your computer and use it in GitHub Desktop.
Save ewillhite/5750188 to your computer and use it in GitHub Desktop.
Lightbox popup
/*------------------------------------------------------------
Lightbox Stuff (replace POPUPBLOCK with name of pop-up div)
-----------------------------------------------------------*/
#overlay {
background-color: #E0E1DC;
display: none;
height: 100%;
width: 100%;
position: fixed;
top: 0;
left: 0;
z-index: 1000;
}
POPUPBLOCK {
background-color:#2f2f2f;
border: 5px solid;
border-radius: 5px 5px 5px 5px;
display: none;
padding: 50px;
position: absolute;/* If Small can be fixed positioned */
z-index: 1001;
}
#close-overlay {
cursor: pointer;
display: none;
color: #000;
position: absolute;
top: -26px;
right: 1px;
font-size: 17px;
}
#close-overlay:hover {
color: #fff;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment