Skip to content

Instantly share code, notes, and snippets.

@dhrobbins
Created October 17, 2013 13:09
Show Gist options
  • Save dhrobbins/7024585 to your computer and use it in GitHub Desktop.
Save dhrobbins/7024585 to your computer and use it in GitHub Desktop.
CSS for changing / creating carets in Bootstrap. Found it on Stackoverflow - http://stackoverflow.com/questions/10801325/changing-bootstrap-caretcolor-and-position
body {padding: 10px;}
.caret {
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #000000;
display: inline-block;
height: 0;
opacity: 0.3;
vertical-align: top;
width: 0;
}
.right-caret {
border-bottom: 4px solid transparent;
border-top: 4px solid transparent;
border-left: 4px solid #000000;
display: inline-block;
height: 0;
opacity: 0.3;
vertical-align: top;
width: 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment