Created
January 29, 2012 02:15
-
-
Save cezarsa/1696790 to your computer and use it in GitHub Desktop.
Fancy arrow
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
/** | |
* Fancy arrow | |
*/ | |
body { | |
background-color: #ebeced; | |
} | |
.arrow { | |
border: 96px solid transparent; | |
border-bottom: 0; | |
border-top: 37px solid #d7d7d8; | |
width: 0; | |
height: 0; | |
margin-top: 100px; | |
position:relative; | |
} | |
.arrow:after:after { | |
content: 'sdadsada'; | |
} | |
.arrow:after { | |
content: ''; | |
border: 99px solid transparent; | |
border-bottom: 0; | |
border-top: 38px solid #fff; | |
position: absolute; | |
display: block; | |
bottom: -1px; | |
left: -3px; | |
margin-left: -95px; | |
z-index: -1; | |
} | |
.arrow:before { | |
content: ''; | |
color: transparent; | |
position: absolute; | |
bottom:37px; | |
left: -62px; | |
height: 12px; | |
width: 125px; | |
background-color: #d7d7d8; | |
display: block; | |
z-index:2; | |
border: 1px solid #c4c4c5; | |
border-bottom: 0; | |
} | |
.arrow span { | |
display: block; | |
position: absolute; | |
width: 198px; | |
height: 1px; | |
background-color: #c4c4c5; | |
bottom: 37px; | |
left: -98px; | |
z-index:1; | |
} | |
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="arrow"><span></span></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","prefixfree":"1","page":"css"} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment