tubeshowcase●♡ My collection 0
← Learn to Code

Learn to Code09:17

The problem with shorthands in CSS

Kevin Powell ↗

From the creator

Interesting in my upcoming course Beyond CSS? Sign up for updates and don't miss the launch: https://beyondcss.dev/ Shorthands in CSS can serve a purpose, but it's important to know the potential issues that can arise when we use them! 🔗 Links ✅ The ch unit: https://www.youtube.com/watch?v=dgbFtMBOMlA ✅ Logical properties: https://youtu.be/kzvmaVik4mA ✅ More on inset: https://youtu.be/8mv1HJgh6-o ⌚ Timestamps 00:00 - Introduction 00:36 - The background property causing trouble 01:20 - Why it's a problem 02:10 - Fixing it with the longhand 02:28 - Margin shorthand causing problems 04:36 - Fixing the margin issue 06:34 - The inset shorthand for positioning 07:45 - When it's alright to use shorthands #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.visualstudio.com/ --- I'm on some other places on the internet too! If you'd like a behind the scenes and previews of what's coming up on my YouTube channel, make sure to follow me on Instagram and Twitter. Twitter: https:

Published 2022-03-24 · Watch on YouTube ↗
Availability and playback restrictions are controlled by the original channel.

Keep exploring Learn to Code