Alex F
Alex F

Reputation: 183

Font size in pixels and as fractional number

Can fractional number used to determine the amount of pixels font-size should have? I know that following syntax is allowed

.text { font-size:10.25684789em; }

But below described syntax is it allowed as well? Is it cross-browser syntax or some limitation is applied?

.text { font-size:10.25684789px; }

Thank you in advance.

Upvotes: 5

Views: 1185

Answers (1)

Farveen Hassan
Farveen Hassan

Reputation: 408

yes the above syntax .text { font-size:10.25684789px; } will be support in browsers too....

Upvotes: 1

Related Questions