No need for CSS pixels — use Rem! Responsive font size, Sass mixin and Px to Rem function

21,333 views

Александр Ламков — Friendly Frontend

Published on Nov 29, 2024
About :

✏️ Let's discuss the pixel problem and its solution — the Rem unit of measurement, which can and should be used for literally all properties and even for defining media query ranges. We'll figure out how to implement adaptive font size using the clamp CSS function and the rem + vw units of measurement, and wrap everything in a convenient fluid-text Sass mixin. We'll create a function for converting a value from pixels to Rem using a Sass function. 🔴 Timeline: ▶ 00:00 Introduction ▶ 00:30 The Pixel Problem ▶ 03:26 The Rem Unit of Measurement ▶ 05:36 Rem for font-size and other CSS properties ▶ 08:17 The Em Unit of Measurement ▶ 09:19 Rem for element sizes ▶ 11:15 Rem for media queries ▶ 14:55 Incorrect use of Rem units - decreasing font-size for html during adaptation ▶ 17:30 Responsive font size via clamp, rem and vw ▶ 22:20 Converting value from pixels to Rem via Sass function ▶ 24:45 Conclusion 📚 Links: ➖ Code from the lesson: https://github.com/aleksanderlamkov/p... ➖ PostCSS plugin pxtorem: https://www.npmjs.com/package/postcss... 💬 Telegram chat (help for beginners): https://t.me/friendlyFrontendChat 🔸 Boosty (support the channel): https://boosty.to/friendly-frontend 🗂️ Free courses on the channel: 🟠 HTML: • HTML course 2024 🔵 CSS: • CSS course 2024 🟡 JS: • JavaScript course 2024 🟢 A11y: • Accessibility course 2024 ⚪️ Master class on layout for beginners: • Adaptive website layout from scratch for n... 🔘 Master class on markup for advanced (BEM, SCSS): • Website markup from 0 to result HTM... 🗺 Frontend Roadmap 2024 • Frontend Roadmap 2024 What should be taken into account... 📌 Author: ➖ Personal website: https://aleksanderlamkov.ru/ ➖ Telegram: https://t.me/friendlyFrontend ➖ Boosty: https://boosty.to/friendly-frontend ➖ GetMentor: https://getmentor.dev/mentor/aleksand... ➖ Solvery: https://solvery.io/mentor/aleksanderl... #frontend #фронтенд #css

Trend Videos
26:20
14:35
707,465 views   6 days ago
26:20
14:35
707,465 views   6 days ago
5:53
1,006,391 views   4 days ago
24:40
1,020,576 views   8 days ago
6:53
23:38
477,734 views   10 days ago
Google AdSense
336 x 280
Up Next
22:52
Vero De lira
7,591 views
3 days ago
32:54
14:09
Dantevegamx
636 views
2 weeks ago
28:52
Los Malvadines
77,944 views
10 months ago
6:28
El Rey de las bromas
1,153,852 views
1 year ago
22:22
La Chule
154,978 views
10 months ago
11:38
Adrián Marcelo
348,752 views
3 years ago
28:49
Adrián Marcelo
2,589,117 views
2 years ago
11:25
Thomas Suchecki - El Alemán Latino
339,486 views
1 year ago
4:59
BVNEWS24
22,349 views
44 minutes ago
56:35
Channel i Shows
558 views
2 hours ago
25:52
Channel i News
12,927 views
3 hours ago
Google AdSense
336 x 280

fetery.com. Copyright 2024