Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ideafm
Created January 28, 2014 07:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ideafm/8663579 to your computer and use it in GitHub Desktop.
Save ideafm/8663579 to your computer and use it in GitHub Desktop.
.tw-wrap {
display: inline-block;
position: relative;
}
.tw-tooltip {
width: 100px;
height: auto;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
position: absolute;
background: rgba(0,0,0,0.5);
padding: 5px;
left: 0;
top: 0;
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
display: none;
color: #000;
z-index: 99999;
}
.tw-right-direction:before {
content: "";
width: 0;
height: 0;
border: 5px solid transparent;
border-left-width: 0;
border-right: 5px solid rgba(0,0,0,0.5);
position: absolute;
left: -5px;
top: 50%;
margin-top: -5px;
display: block;
}
.tw-left-direction:before {
content: "";
width: 0;
height: 0;
border: 5px solid transparent;
border-right-width: 0;
border-left: 5px solid rgba(0,0,0,0.5);
position: absolute;
right: -5px;
top: 50%;
margin-top: -5px;
display: block;
}
.tw-top-direction:before {
content: "";
width: 0;
height: 0;
border: 5px solid transparent;
border-bottom-width: 0;
border-top: 5px solid rgba(0,0,0,0.5);
position: absolute;
bottom: -5px;
left: 50%;
margin-left: -5px;
display: block;
}
.tw-bottom-direction:before {
content: "";
width: 0;
height: 0;
border: 5px solid transparent;
border-top-width: 0;
border-bottom: 5px solid rgba(0,0,0,0.5);
position: absolute;
top: -5px;
left: 50%;
margin-left: -5px;
display: block;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment