Skip to content

Instantly share code, notes, and snippets.

@h4
Forked from tyv/dabblet.css
Created January 21, 2013 20:41
Show Gist options
  • Save h4/4589153 to your computer and use it in GitHub Desktop.
Save h4/4589153 to your computer and use it in GitHub Desktop.
Untitled
body
{
background: pink
}
.popup
{
position: relative;
width: 200px;
height: 150px;
padding: 10px;
background: #fff;
background-clip: padding-box;
border: 5px solid rgba(0,0,0,0.6);
}
.popup:before {
content: "";
position: absolute;
top: 11px;
right: -18px;
height: 37px;
width: 38px;
background: #FFF;
transform: rotate(45deg);
}
.tail {
top: 10px;
right: -15px;
position: absolute;
height: 30px;
width: 30px;
clip: rect(-10px, 50px, 50px, 20px);
}
.tail:before {
content: "";
position: absolute;
height: 30px;
width: 30px;
background-clip: padding-box;
border: solid 5px rgba(0,0,0,0.6);
transform: rotate(45deg);
}
<div class="popup">
<div class="tail"></div>
контент
</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