Minified Tooltips in Pure CSS – Wenk CSS tooltip library

Best WordPress Hosting

The tooltip is one of the important element of a web page. If you use tooltip, your web page will be more user-friendly and show suggestions to users. There could be various solutions to include the tooltip on the page. I have already written several CSS libraries to add tool tips. This article is about another good CSS tooltip library.

Wenk CSS tooltip library is something you should not miss. It is one of the smallest CSS tooltip libraries and comes under 1KB when gzipped.

Also see: Get thousands of free graphic resources on Freepik

This library uses pure CSS and works with data-* attributes to create live tooltips. You can adjust the style and position as per your own need and interest. The library is free and source code is available on Github.

As I already said, it is pure CSS library, you just need to include the wenk.css in your document. You can either download from Github repo or use the CDN file hosted on GitHub’s CDN. Here’s the code for that:

To use the tooltip, simply add data-wenk attribute to your HTML with the text you want to display.

You can set the position and even the size of the tooltips. See the image below.

wenk CSS Library

You can either use data-wenk-pos attribute or the .wenk–* class to set the position of tooltip.

For example, if you want to show the tooltip to the right, you can use this markup.


The most important thing to note is that it supports all major browsers including Chrome, Firefox, Opera and even Opera Mini.But IE8 and IE10 seem to have trouble rendering these tooltips.

You can also use data-wenk-length attribute or wenk-length-* class to adjust the width of the tooltip.

If you want to show the smaller one, you can use this markup.

You can also set it to display at different alignments.

Check out the demo here.

I found this library useful and hope you will also like this. I have written several good free web development resources. You can browse it and see if you find any other good library.

If you also know about any good web design resource that comes for free and should be shared with readers or this blog, you can let us know about it.

advertisement

About The Author

Subscribe To Our Newsletter

Subscribe To Our Newsletter

Receive fresh web design resources and SEO tips in your email by our weekly newsletter

You have Successfully Subscribed!