Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rakeshtembhurne/3793784 to your computer and use it in GitHub Desktop.
Save rakeshtembhurne/3793784 to your computer and use it in GitHub Desktop.
CSS: Twitter Bootstrap Popover extra placements for v2.0.3
.popover.top-left, .popover.top-right {
margin-top: -5px;
}
.popover.bottom-left, .popover.bottom-right {
margin-top: 5px;
}
.popover.top-left .arrow {
bottom: 0;
left: 20%;
margin-left: -5px;
border-top: 5px solid #000000;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
.popover.top-right .arrow {
bottom: 0;
left: 80%;
margin-left: -5px;
border-top: 5px solid #000000;
border-right: 5px solid transparent;
border-left: 5px solid transparent;
}
.popover.bottom-right .arrow {
top: 0;
left: 80%;
margin-left: -5px;
border-right: 5px solid transparent;
border-bottom: 5px solid #000000;
border-left: 5px solid transparent;
}
.popover.bottom-left .arrow {
top: 0;
left: 20%;
margin-left: -5px;
border-right: 5px solid transparent;
border-bottom: 5px solid #000000;
border-left: 5px solid transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment