Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Felyza/Sandbox/TooltipTest: Difference between revisions

From EVE University Wiki
Felyza (talk | contribs)
mNo edit summary
Felyza (talk | contribs)
mNo edit summary
Line 17: Line 17:
   border-radius: 6px;
   border-radius: 6px;
   
   
  /* Position the tooltip text - see examples below! */
   position: absolute;
   position: absolute;
   z-index: 1;
   z-index: 1;
Line 24: Line 23:
.tooltip .tooltiptext {
.tooltip .tooltiptext {
   width: 512px;
   width: 512px;
   bottom: 100%;
   top: 100%;
   left: 50%;
   left: 75%;
   margin-left: -256px; /* Use half of the width (120/2 = 60), to center the tooltip */
   margin-left: -128px; /* Use half of the width (120/2 = 60), to center the tooltip */
}
.tooltip .tooltiptext::before {
  content: " ";
  position: absolute;
  bottom: 100%; /* At the bottom of the tooltip */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}
}


/* Show the tooltip text when you mouse over the tooltip container */
/* Show the tooltip text when you mouse over the tooltip container */