CODEROLL Telegram 2684
Rem, Em, Px – какие единицы измерения лучше использовать в CSS?

При разработке адаптивных интерфейсов важно правильно выбирать единицы измерения. Но что лучше: px, em или rem?

📌 Краткий разбор:
px – фиксированная величина, удобна, но не масштабируется.
em – зависит от родительского элемента, удобно для вложенных блоков.
rem – зависит от html, обеспечивает консистентность масштабирования.

Когда использовать
Для шрифтов: rem
Для отступов и padding: em/rem
Для границ и теней: px

Coderoll | Frontend



tgoop.com/coderoll/2684
Create:
Last Update:

Rem, Em, Px – какие единицы измерения лучше использовать в CSS?

При разработке адаптивных интерфейсов важно правильно выбирать единицы измерения. Но что лучше: px, em или rem?

📌 Краткий разбор:
px – фиксированная величина, удобна, но не масштабируется.
em – зависит от родительского элемента, удобно для вложенных блоков.
rem – зависит от html, обеспечивает консистентность масштабирования.

Когда использовать
Для шрифтов: rem
Для отступов и padding: em/rem
Для границ и теней: px

Coderoll | Frontend

BY CodeRoll | Frontend




Share with your friend now:
tgoop.com/coderoll/2684

View MORE
Open in Telegram


Telegram News

Date: |

Write your hashtags in the language of your target audience. With the sharp downturn in the crypto market, yelling has become a coping mechanism for many crypto traders. This screaming therapy became popular after the surge of Goblintown Ethereum NFTs at the end of May or early June. Here, holders made incoherent groaning sounds in late-night Twitter spaces. They also role-played as urine-loving Goblin creatures. Ng, who had pleaded not guilty to all charges, had been detained for more than 20 months. His channel was said to have contained around 120 messages and photos that incited others to vandalise pro-government shops and commit criminal damage targeting police stations. Add the logo from your device. Adjust the visible area of your image. Congratulations! Now your Telegram channel has a face Click “Save”.! On Tuesday, some local media outlets included Sing Tao Daily cited sources as saying the Hong Kong government was considering restricting access to Telegram. Privacy Commissioner for Personal Data Ada Chung told to the Legislative Council on Monday that government officials, police and lawmakers remain the targets of “doxxing” despite a privacy law amendment last year that criminalised the malicious disclosure of personal information.
from us


Telegram CodeRoll | Frontend
FROM American