Answer the question
In order to leave comments, you need to log in
Can letter-spacing be set to very small values?
Good evening!
There was a need to lay out a web page according to a PSD layout exactly pixel-for-pixel. When I started to typeset one of the blocks, I decided to use letter-spacing to achieve the exact letter spacing.
Can you please tell me if it is common to use very small values in letter-spacing? For example, to achieve accuracy with the PSD layout, I had to specify:
some-block {
letter-spacing: 0.017em
}
Answer the question
In order to leave comments, you need to log in
The answer is "yes" on both counts.
But generally speaking, it is not necessary to pursue absolute compliance with psd, since Adobe font rendering is by definition different than in OS and browsers. If the difference is in thousandths - score. If the discrepancies are more significant, do not treat the symptom, but find out the cause.
You can set, but browsers can round off. Look at this layout in different browsers, on different operating systems, and with different settings for all sorts of improvers, such as cleartype. There is not much sense in such subpixel fuss.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question