This can be done without the fixed width and without the extra markup and classes:
Hey, That's a very neat solution man! How is the browser support on those selectors?
I do guess my solution could be converted to use the dynamic width, but I like your approach!
I haven't tested extensively... but caniuse gives pretty wide support: caniuse.com/#feat=css-gencontent caniuse.com/#search=attribute%20se... caniuse.com/#feat=calc
The most problematic one looking to be calc in IE may or may not work correctly
calc
Nice, I'm going to give them a try
Awesome, these selectors are amazing, created the alternative way as well:
dev.to/dailydevtips1/css-only-tool...
Yeah pseudo classes really are king
Very nice, I love how many ways there are to solve one problem. Definitely going to give the attributes a try
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This can be done without the fixed width and without the extra markup and classes:
Building a tooltip with only CSS
Nathan Kallman ・ Jun 3 ・ 7 min read
Hey, That's a very neat solution man!
How is the browser support on those selectors?
I do guess my solution could be converted to use the dynamic width, but I like your approach!
I haven't tested extensively... but caniuse gives pretty wide support:
caniuse.com/#feat=css-gencontent
caniuse.com/#search=attribute%20se...
caniuse.com/#feat=calc
The most problematic one looking to be
calc
in IE may or may not work correctlyNice, I'm going to give them a try
Awesome, these selectors are amazing, created the alternative way as well:
dev.to/dailydevtips1/css-only-tool...
Yeah pseudo classes really are king
Native HTML: tooltips
Andrew Bone ・ Apr 14 ・ 2 min read
Very nice, I love how many ways there are to solve one problem.
Definitely going to give the attributes a try