Created
September 12, 2017 22:09
-
-
Save digitalhitler/9ba174b51710b79ccf8eef25542ea246 to your computer and use it in GitHub Desktop.
Pure CSS tooltips
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
(prototype that explains method`s logic) | |
Usage: | |
<a href="somewhere" class="with-tooltip" data-tooltip="Всплывашка">A href</a> | |
*/ | |
.with-tooltip::after { | |
content: attr(data-tooltip); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment