Skip to content

Instantly share code, notes, and snippets.

@alexeyten
Created February 3, 2012 07:21
Show Gist options
  • Save alexeyten/1728739 to your computer and use it in GitHub Desktop.
Save alexeyten/1728739 to your computer and use it in GitHub Desktop.
DD
/**
* DD
*/
body {
padding: 3em;
background: white;
color: black;
}
.dd {
background: #dfe;
position: absolute;
z-index: 20;
border: 1px solid #aaa;
box-shadow: 0 0 5px 1px rgba(0,0,0,0.5);
}
.dd-tip {
position: absolute;
width: 30px;
height: 30px;
left: 50%;
top: -14px;
margin-left: -15px;
clip: rect(0 30px 14px 0);
}
.dd-tip::before {
display: block;
width: 14px;
height: 14px;
position: relative;
left: 7px;
top: 7px;
content: "";
background: #dfe;
transform: rotate(45deg);
box-shadow: 0 0 5px 2px rgba(0,0,0,0.5);
}
<div class="dd">
<i class="dd-tip"></i>
<div style="padding: 1em">content 1 2 4 4 4 5<br> 5 6 6 6 7 7 7 7 7</div>
</div>
{"view":"split-vertical","prefixfree":"1","page":"html"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment