Guest User

Untitled

a guest
Jan 22nd, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. .tip {
  2. position: absolute;
  3. background: #FFF;
  4. border: 4px solid #e9e6e1;
  5. border-radius: 7px;
  6. box-shadow: 0px 0px 4px rgba(0,0,0,0.7);
  7. padding: 0;
  8. margin: 0;
  9. list-style: none;
  10. font-size: 12px;
  11. }
  12. /* create the box that will hold the tooltip arrow */
  13. .tip:before {
  14. content: ".";
  15. text-indent: -10000px;
  16. width: 8px;
  17. height: 100%;
  18. background: url(left.png) center no-repeat;
  19. left: -12px;
  20. position: absolute;
  21. }
  22. /* when .tip also has .up .down or .right */
  23. .tip.right:before {
  24. background-image: url(right.png);
  25. right: -12px;
  26. left: auto;
  27. }
  28. .tip.up:before,
  29. .tip.down:before {
  30. width: 100%;
  31. height: 8px;
  32. background-image: url(up.png);
  33. left: auto;
  34. top: -12px;
  35. }
  36. .tip.down:before {
  37. background-image: url(down.png);
  38. top: auto;
  39. bottom: -12px;
  40. }
  41. /* bump the content away from the edges - cannot use padded because it messes with the
  42. * height: 100%; display.
  43. */
  44. .tip > * {
  45. margin: 0 10px 3px 10px;
  46. }
  47. .tip > *:first-child {
  48. margin-top: 10px;
  49. }
  50. .tip > *:last-child {
  51. margin-bottom: 10px;
  52. }
Add Comment
Please, Sign In to add comment