02:06This flowchart will help you pick the right CSS unit
From the creator
The flowchart π https://whatunit.com/ There are a lot of CSS length units to pick fromβ54 to be exact!βwhich can make it hard to know which one you should use. Luckily, there are only a handful that youβll use most of the time, but it can still be hard to know whatβs best, so Iβve made a flowchart to help you decide! π Links β More on clamp() for font-size: https://youtu.be/U9VF-4euyRost β Why em is good for spacing text: https://youtu.be/Gx0iZrN-0L4 β svh, lvh, dvh: https://youtu.be/ru3U8MHbFFI β Using min(), max(), and clamp() for padding and margin: https://youtu.be/7khSaA91e04?si=pD9m-rgZG3sxddmU β Josh Comeau on the problem with 62.5% font-size on the html element: https://www.joshwcomeau.com/css/surprising-truth-about-pixels-and-accessibility/#the-sixtwofive-trick-13 β Timestamps 00:00 - Introduction 00:22 - The flowchart 01:54 - positioning, details, and effects 02:55 - font-size 08:00 - spacing 10:40 - Flex and Grid 14:25 - widths and heights #css -- Come hang out with other dev's in my Discord Community π¬ https://discord.gg/nTYCvrK Keep up to date with everything I'm up to β https://www.kevinpowell.co/newsletter Come hang out with me live every Monday on Twitch! πΊ https://www.twitch.tv/kevinpowellcss --- Help support my channel π¨βπ Get a course: https://www.kevinpowell.co/courses π Buy a shirt: https://teespring.com/stores/making-the-internet-awesome π Support me on Patreon: https://www.patreon.com/kevinpowell --- My editor: VS Code - https://code.visuals
Published 2023-11-21 Β· Watch on YouTube β
Availability and playback restrictions are controlled by the original channel.





