User:Saag/common.css

From Deadlock Wiki
Revision as of 18:33, 6 September 2024 by Saag (talk | contribs)
Jump to navigation Jump to search

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
/* Container for the hover element */
.hover-to-show {
  position: relative; /* Ensure that the hover-to-show element is the reference point for the absolutely positioned element */
}

.hide {
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute; /* Change to absolute to make positioning relative to .hover-to-show */
  top: 100%; /* Adjust to position the element below the hover-to-show element */
  left: 0; /* Align horizontally, modify if you need to offset horizontally */
  z-index: 2;
  cursor: pointer;
}

.hover-to-show:hover + .hide {
  display: block;
  opacity: 1;
}