Skip to content

Instantly share code, notes, and snippets.

@DeviaVir
Created October 1, 2012 14:32
Show Gist options
  • Select an option

  • Save DeviaVir/3812142 to your computer and use it in GitHub Desktop.

Select an option

Save DeviaVir/3812142 to your computer and use it in GitHub Desktop.
Outline popup demo
/**
* Outline popup demo
*/
body, html {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
position: relative;
min-height: 100%;
height: 100%;
font-family: Geneva, Verdana, Arial, sans-serif;
}
.popup {
/* Remove this line to remove the lightboxesque overlay */
outline: 9999px solid rgba(0,0,0,.3);
width: 200px;
height: 200px;
position: absolute;
left: 50%;
top: 50%;
margin-left: -100px;
margin-top: -100px;
background: #ccc;
/* Don't use border radius though */
/* border-radius: 15px; */
box-shadow: inset 0 0 4px 2px rgba( 0, 0, 0, 0.3 );
padding: 15px;
box-sizing: border-box;
}
<div class="popup">
<p>
Hello, I am a popup.
</p>
</div>
{"view":"split","fontsize":"100","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment