Skip to content

hail2u/ellipsis-title

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ellipsis Title

Put title attribute to elements that have text-overflow: ellipsis

SYNOPSIS

A ellipsis-ed element should have title attribute, and this value should be same as its content. However, we are too busy to write title attributes! This library adds title attributes automatically to every element that have text-overflow: ellipsis.

USAGE

Put dist/ellipsis-title.js into head element of your HTML document.

<script defer src="/js/ellipsis-title.js"></script>

Don’t forget defer attribute!

LICENSE

MIT

About

Put title attribute to elements that have text-overflow: ellipsis

Resources

Stars

Watchers

Forks

Packages

No packages published