G
G
Georgy Kotov2020-12-30 16:28:30
css
Georgy Kotov, 2020-12-30 16:28:30

How to correctly align the font on the layout (example inside)?

Good afternoon ! There is a layout like this:
5e09fa712fd18537288829.png
Arrow 1 - the baseline of the font.
Arrow 2 - line-height, which has nothing to do with the grid.
Grid in 4px and 20px layout. Font alignment for the designer at the bottom of the text.
I have no idea how to do this alignment?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Proskurin, 2020-12-30
@mixail_fet

Why is line-height irrelevant to grid? Indents are counted according to the font line, which is automatically generated, according to the line-height size.
5e09fe0c66c19454760893.jpeg

D
Dmitry Markov, 2020-12-30
@En-Tilza

You can align it like this align-items baseline
The main thing is that the container should be display flex

S
Sergey Tilion, 2020-01-09
@tilion

This is the sloppiness of the designer or an inaccuracy that accidentally crept in. Enough to round. By default, the same Figma places text objects on a pixel grid, including the baseline.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question