G
G
GizzaProger2021-03-06 10:49:23
HTML
GizzaProger, 2021-03-06 10:49:23

Why can't I get text from photoshop to match text in the browser?

Hello
I was asked to make a pixel perfect layout. I do typography. Added properties to css

.title {
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    letter-spacing: 0;
    word-spacing: 0;
}

But a match was not achieved. How to match? Why won't they get it?

I tried to play with the properties, but it still doesn't work. Part of the text falls off, but then there are still discrepancies.
60433499881c0312606502.png
Here is a screen

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
Homkadesigner, 2021-05-03
@Homkadesigner

Letter spacing is set in the layout. Judging by the screen, you need to set the distance between letters in css and everything will be ok.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question