Skip to content

Instantly share code, notes, and snippets.

@lsmith
Created March 6, 2011 07:56
Show Gist options
  • Save lsmith/857131 to your computer and use it in GitHub Desktop.
Save lsmith/857131 to your computer and use it in GitHub Desktop.
The CSS to create an iOS details call-to-action arrow
/* 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);
}
@mathiasbynens
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment