Advertisement
Guest User

Untitled

a guest
Dec 15th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. /* Tooltip container */
  2. .tooltip-inside {
  3. position: relative;
  4. display: inline-block;
  5. /*border-bottom: 1px dotted black; /* If you want dots under the hoverable text */
  6. }
  7.  
  8. /* tooltip-inside text */
  9. .tooltip-inside .tooltiptext {
  10. visibility: hidden;
  11. width: 120px;
  12. background-color: black;
  13. color: #fff;
  14. text-align: center;
  15. padding: 5px 0;
  16. border-radius: 6px;
  17. /* Position the tooltip text */
  18. position: absolute;
  19. z-index: 1;
  20. bottom: 125%;
  21. left: 50%;
  22. margin-left: -60px;
  23. /* Fade in tooltip */
  24. opacity: 0;
  25. transition: opacity 0.3s;
  26. }
  27.  
  28. /* Tooltip arrow */
  29. .tooltip-inside .tooltiptext::after {
  30. content: "";
  31. position: absolute;
  32. top: 100%;
  33. left: 50%;
  34. margin-left: -5px;
  35. border-width: 5px;
  36. border-style: solid;
  37. border-color: #555 transparent transparent transparent;
  38. }
  39.  
  40.  
  41.  
  42. /* Show the tooltip text when you mouse over the tooltip container */
  43. .tooltip-inside:hover .tooltiptext {
  44. visibility: visible;
  45. opacity: 0.8;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement