C
C
Cyril2018-04-18 18:55:14
css
Cyril, 2018-04-18 18:55:14

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
}

Is this normal? Are there such cases in practice?
- - - - -
And the second (following) question. Can letter-spacing be used in negative values?
For example, there is a place where the text is longer than in the layout. I specified letter-spacing: -0.003em and everything was fine. is this practiced?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
dom1n1k, 2018-04-18
@dom1n1k

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.

S
Stalker_RED, 2018-04-18
@Stalker_RED

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.

M
Mr Crabbz, 2018-04-18
@Punkie

Practiced in pixel perfect layout. Very often it is used when making up just from psd layouts. 50 tracking units in fsh is about 0.050em in css

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question