Тёмный

CSS Pixels vs Rem Finally Answered | Learn Web Dev with Austin Gil 

Akamai DevRel
Подписаться 8 тыс.
Просмотров 7 тыс.
50% 1

Should you use pixels or rems? This question comes up over and over, and the answers are always mixed. Austin Gil wanted to create a video that finally answers the question by showing the issue and reasoning behind it.
Links:
CSS Units & Values - developer.mozilla.org/en-US/d...
PX, EM or REM Media Queries? - zellwk.com/blog/media-query-u...
Watch Austin's Livestreams here:
RU-vid: / heyaustingil
Twitch: / heyaustingil
Website: austingil.com/
Chapters:
0:00 - Introduction
0:17 - Pixels vs Rems in CSS
3:31 - Wrap Up
#css #webdevelopment #pixels #rem

Наука

Опубликовано:

 

11 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@wasit-shafi
@wasit-shafi Год назад
very informative video, i just have one query, if we consider choosing the rem, and in case the user changes its setting in the browser, now obviously our text will take more space, so now I guess there will be more overhead to manage the website layout...?
@heyAustinGil
@heyAustinGil Год назад
Yes and no. There's not one sure-fire solution I can tell you that will work for all websites, but if you are building things and testing them out to be responsive anyway, it's not a lot of overhead. It becomes more nuanced if you use rem for some properties and px for others. But either way, I think the most important thing is the user experience, and if a user sets their font size to be larger, then websites should respect that.
@kueifengtung
@kueifengtung 7 месяцев назад
In your opinion, does using rem make more sense for padding/border? You said it depends, but from a UIUX perspective, is there one more correct answer?
Далее
Why You Should Use REM Instead of Pixels
8:26
Просмотров 29 тыс.
Хотите поиграть в такую?😄
00:16
Просмотров 189 тыс.
px vs rem: what to use for font-size in your CSS
16:11
Learn CSS Units In 8 Minutes
8:48
Просмотров 225 тыс.