Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
This branch is 236 commits behind chinchang:master.

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time


A tooltip library in CSS for your lovely websites

hint.css is written as a pure CSS resource using which you can create cool tooltips for your web app. It does not rely on JavaScript and rather uses data- attribute*, pseudo elements, content property and CSS3 transitions to create the tooltips. Also it uses BEM naming convention particularly for the modifiers.

Note: CSS3 Transitions on pseudo elements is currently available on Firefox & IE10 only. On rest of the browsers it degrades gracefully without any transition. Though the good news is that it will be coming soon on webkit also (landed in Chrome 26 beta).

Read more about it.

###Try it out:

Get Started

Download one of the 2 library version:

And include it in the HEAD of your page:

<link rel="stylesheet" href="hint.css"></link>


<link rel="stylesheet" href="hint.min.css"></link>

Any element on your page which needs to have a tooltip has to be given at least one of the position classes: hint--top, hint--bottom, hint--left, hint--right to position the tooltip.

Hello Sir, <span class="hint--bottom">hover me.</span>

The tooltip text needs to be given using the data-hint attribute on that element.

Hello Sir, <span class="hint--bottom" data-hint="Thank you!">hover me.</span>

[ Note: The hint class is no more required and is deprecated. Tooltip is shown on elements which have the data-hint attribute instead.]

Use it with other available modifiers in various combinations. Available modifiers:

  • hint--error
  • hint--info
  • hint--warning
  • hint--success
  • hint--always
  • hint--rounded

Check out some examples at

Who's Using This?

Are you using hint.css in your awesome project too? Let us know on the mailing list.


hint.css is developed in SASS and the source files can be found in the src/ directory.

If you would like to create more types of tooltips/ fix bugs/ enhance the library etc. you are more than welcome to submit your pull requests.

Read more on contributing.


See the Changelog

To catch all updates and discussion, join the mailing list:

To subscribe: or visit here.


Copyright (c) 2013 Kushagra Gour Licensed under the MIT license.


This doesn't make use of a lot of BEM methodology but big thanks to @csswizardry, @necolas for their awesome articles on BEM and to @joshnh through whose work I came to know about it :)


A tooltip library in CSS for your lovely websites.







No packages published