Created
March 6, 2011 07:56
-
-
Save lsmith/857131 to your computer and use it in GitHub Desktop.
The CSS to create an iOS details call-to-action 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
/* assumes .details is position: relative */ | |
.details::after { | |
content: ''; | |
position: absolute; | |
border-top: 3px solid #7f7f7f; | |
border-right: 3px solid #7f7f7f; | |
height: 6px; | |
width: 6px; | |
top: 50%; | |
right: 12px; | |
margin-top: -3px; | |
-webkit-transform: rotate(45deg); | |
-moz-transform: rotate(45deg); | |
-o-transform: rotate(45deg); | |
transform: rotate(45deg); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was curious about the double ‘::’ vs. just
:after
, and learned something from the Mozilla Developer Center: