Skip to content

Instantly share code, notes, and snippets.

@nshimiye
Created May 20, 2019 04:52
Show Gist options
  • Save nshimiye/bbe40dd0eda9ed91de28825860a707a1 to your computer and use it in GitHub Desktop.
Save nshimiye/bbe40dd0eda9ed91de28825860a707a1 to your computer and use it in GitHub Desktop.
add transparent box
.tooltip:hover::before {
position: absolute;
top: 100%;
left: calc(50% - var(--tip-pointer-half-height));
content: " ";
height: 0;
width: 0;
border: var(--tip-pointer-half-height) solid transparent;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment