Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Font size in pixels and as fractional number

Tags:

css

font-size

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.

like image 592
Alex F Avatar asked Nov 09 '22 19:11

Alex F


1 Answers

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

like image 162
Farveen Hassan Avatar answered Nov 15 '22 07:11

Farveen Hassan