Skip to content

nathanhammond/baseline-ratio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

baseline-ratio

Calculate the baseline position as a ratio of the bounding text box.

Usage

Provides a single function, baselineRatio. The function accepts one argument, the element whose baseline position you wish to calculate.

Example:

var ratio = baselineRatio(document.body);

About

Calculate the baseline position as a ratio of the bounding text box.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published