Skip to content

Commit f9d9b4a

Browse files
author
Jim Jeffers
committed
Updated usage examples.
1 parent b7a4c42 commit f9d9b4a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ Select applicable elements with jQuery and pass an amount:
99

1010
`$("#content p").minLineHeight(1.3)`
1111

12-
The minimum line height can be supplied in the following ways:
12+
The minimum line height can be supplied in the following ways -
1313

14-
`$("#content p").minLineHeight(1.3)` or `$("#content p").minLineHeight("1.3rem")` or `$("#content p").minLineHeight("13px")`
14+
A float:
15+
`$("#content p").minLineHeight(1.3)`
16+
17+
As ems:
18+
`$("#content p").minLineHeight("1.3rem")`
19+
20+
As px:
21+
`$("#content p").minLineHeight("13px")`
1522

1623
If the amount is passed as a float or any units other than px, the script will default to ems.
1724

0 commit comments

Comments
 (0)