chinchang / hint.css

A CSS only tooltip library for your lovely websites.
https://kushagra.dev/lab/hint/
MIT License
8.42k stars 701 forks source link

Ability to show markup inside tooltips #154

Open chinchang opened 8 years ago

chinchang commented 8 years ago

Right now hint.css tooltips can only show normal text with unicode characters. It cannot render HTML because of no support in content property.

HTML tooltips are only possible when tooltips are not made using pseudo elements. So the library could have an option to let user define their own element in the DOM which is rendered as a tooltip.

Something like:

<div class="hint--top">
A tooltip shows on me.
<div data-hint>I am <strong>rendered</strong> as tooltip with HTML</div>
</div>
PratheepV commented 7 years ago

+1

janydrozd commented 6 years ago

@chinchang is it still opened? I could work on this.

chinchang commented 5 years ago

@janydrozd Yes, it is open. PR is welcome :)