Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 591 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 591 Bytes

simple-css-tooltips

Simple CSS Tooltips are … simple CSS only tooltips.

Single line tooltip:

<img src="path/to/foo.png" data-tt="Tooltip text" />

Contents of @data-tt preserve newlines, like pre, and can be used to produce multiline tooltips.

If you need to position the tooltip somewhere other than below (south of) the element, use one of the classes .tt-e, .tt-w, .tt-n which correspond to east, west and north of the element respectively.

Simple Tooltips demo.