Created
November 11, 2013 19:17
-
-
Save anonymous/7418712 to your computer and use it in GitHub Desktop.
most flexible arrow
This file contains hidden or 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
/** | |
* most flexible arrow | |
*/ | |
.out { | |
width: 100px; | |
height: 200px; | |
position: relative; | |
overflow: hidden; | |
/* | |
background: gray; | |
*/ | |
} | |
.out::before { | |
content: ''; | |
position: absolute; | |
top: 0; | |
left: 0; | |
width: 141.42%; height: 70.71%; | |
transform: rotate(-45deg) translateY(29%); | |
border: 1px solid #333; | |
/* | |
background: red; | |
*/ | |
} |
This file contains hidden or 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="out"></div> |
This file contains hidden or 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
// alert('Hello world!'); |
This file contains hidden or 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","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