Skip to content

Instantly share code, notes, and snippets.

@tyv
Created January 21, 2013 21:15
Show Gist options
  • Save tyv/4589477 to your computer and use it in GitHub Desktop.
Save tyv/4589477 to your computer and use it in GitHub Desktop.
Untitled
body
{
background: pink;
}
.popup
{
position: relative;
width: 150px;
height: 100px;
padding: 10px;
background: #fff;
box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}
.tail
{
position: absolute;
left: 100%;
top: 5px;
overflow: hidden;
width: 25px;
height: 39px;
}
.tail:before
{
position: absolute;
top: 7px;
left: -12px;
width: 25px;
height: 25px;
transform: rotate(45deg);
background: #fff;
box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
content: ''
}
.tail:after
{
position: absolute;
width: 1px;
height: 100%;
background: rgba(255,255,255,0.3);
content: '';
}
<div class="popup"><div class="tail"></div>content</div>
// alert('Hello world!');
{"view":"separate","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment