Jun. 12th, 2016

[identity profile] annathefoodie.livejournal.com

Let’s set the padding on the bodyelement to a single unit of our baseline.

Речь идет о плавающей типографике. Padding в данном случае отступ? Тогда вторая часть предложения не очень понятна. Unit здесь - это единиц измерения (em, rem)

With fluid typography, the baseline can be fluid, just like the font size. In fact, if we have already set the root element to a fluid value, we can use em or remunits, and we can use calc() to make this easy.

Let’s say we make 1.5rem our baseline. Let’s set the padding on the bodyelement to a single unit of our baseline.

We’ll do the same for the line height and margins.

For heading elements, I want a different line height. However, I want the height of the line plus the margins to equal an increment of the baseline. This is where calc() helps.

Profile

ru_translate: (Default)
Тотальный перевод

September 2017

S M T W T F S
      1 2
3 4567 89
10 11 1213 14 15 16
1718192021 22 23
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 5th, 2025 02:51 am
Powered by Dreamwidth Studios