Skip to content

vineethtrv/css3-tooltip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS3 Tooltip

Tooltip is a small information box that appears when the user moves the mouse pointer over an element. This plugin made out of pure CSS3 their is no any requirement JavaScript

Getting Started

Include tooltip.css on your project.

alt text

Using the CSS3 Tooltip

To create a tooltip, add the data-tooltip=" " attribute to an element and specify the text that should be displayed inside the tooltip:

<a href="#" data-tooltip="I am here">Hover over me</a>

Positioning Tooltips

By default, the tooltip will appear on top of the element.
Use the data-position attribute to set the position of the tooltip on top, bottom, left or the right side of the element:

<b data-position="top" data-tooltip="I am here">Hover me</b>
<b data-position="bottom" data-tooltip="I am here">Hover me</b>
<b data-position="left" data-tooltip="I am here">Hover me</b>
<b data-position="right" data-tooltip="I am here">Hover me</b>

Author

About

Tooltip is a small information box that appears when the user moves the mouse pointer over an element. This plugin made out of pure CSS3 their is no any requirement JavaScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages