I need to increase font size (CSS, pt) smoothly (+0.3pt). But it looks like it changes with a given step (1pt or even more). Is there a way to get it done?
Regards,
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
A font size can only be a whole number of pixels… so even if you set the font-size with a decimal the browser casts the invalid font size to something it can use.
A pixel is, by definition, the smallest element that can be displayed (or not displayed) at the current screen resolution. So this chart may be of some use to you when using pt knowing that you cannot display a decimal of a pixel: http://www.getallfix.com/2011/11/convert-empxpt-and-in-css/