Created
February 3, 2012 07:21
-
-
Save alexeyten/1728739 to your computer and use it in GitHub Desktop.
DD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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