Skip to main content
Question

Line Height Problem?


Dominik_Nowakowski

I came across a problem. Figma in the inspect tab gives different percentages for line height. When CSS is selected it shows the value A and when switching to Table it shows the value B. Below are examples.

Is this a bug or something I don’t understand?
Zrzut ekranu 2023-05-9 o 14.02.43
Zrzut ekranu 2023-05-9 o 14.02.36

This topic has been closed for replies.

3 replies

Dominik_Nowakowski

Bump. Please answer.


Hi Dominik,

go to your Text editor panel and change line-hight from % to px. It must be in % that’s why you are getting 109% in CSS.


Dominik_Nowakowski

The line height is default set by px as you can see on the second screen (that’s why Figma tells me identical to box height or 133%) but in table it shows 109% which is confusing for developers.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings