Skip to content

Instantly share code, notes, and snippets.

@baudoin
Created April 20, 2012 19:04
Show Gist options
  • Save baudoin/2431087 to your computer and use it in GitHub Desktop.
Save baudoin/2431087 to your computer and use it in GitHub Desktop.
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
body { background: #c2c2c2; }
#pop {
box-shadow: 0px 9px 8px #a1a1a1;
border-radius: 5px;
background: #fff;
font: 300 2em/1 "Helvetica Neue", arial;
margin: 2% auto 0 auto;
padding: 8% 5%;
width: 50%;
text-align: center;
position: relative;
}
#pop:after {
background: #fff;
content: "";
clear: both;
display: block;
width: 1em;
height: 1em;
-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);
-o-transform: rotate(45deg);
transform: rotate(45deg);
position: absolute;
left: 48%;
bottom: -13px;
box-shadow: -10px -10px 10px #fff,
8px 8px 7px #a1a1a1;
}
<div id="pop">What about this popover?</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