brynner
3/6/2011 - 7:56 AM

The CSS to create an iOS details call-to-action arrow

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);
}