Wrapper Classes: A Layout Foundation @KevinPowell
Wrapper Classes: A Layout Foundation  @KevinPowell
Uploaded March 2025 | Updated September 2026, 2 weeks ago
🎓 Free course HTML & CSS for Absolute Beginners: learn.kevinpowell.co

And all the videos are in a playlist here too: youtube.com/playlist?list=PL4-IK0AVhVjOJs_UjdQeyEZ_cmEV3uJvx

🔗 Links
✅ More on logical properties: youtu.be/kzvmaVik4mA
✅ Take the course: learn.kevinpowell.co
✅ I have other courses too: kevinpowell.co/courses
✅ Starting code if you want to follow along: codepen.io/kevinpowell/pen/gbYqpga

⌚ Timestamps
00:00 - Introduction
00:20 - Using a wrapper (or container) class
03:15 - Adding the wrapper inside the background area
04:20 - HTML & CSS for absolute beginners
05:58 - Prevent overflows with max-inline-size (or max-width)
07:38 - Adding padding-inline
08:25 - Wrapper vs. Container

Get a YT membership: Join this channel to get access to perks:
youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw/join


#css

--

Come hang out with other dev's in my Discord Community
💬 discord.gg/nTYCvrK

Keep up to date with everything I'm up to
kevinpowell.co/newsletter

Come hang out with me live every Monday on Twitch!
📺 twitch.tv/kevinpowellcss

---

Help support my channel
👨‍🎓 Get a course: kevinpowell.co/courses
👕 Buy a shirt: teespring.com/stores/making-the-internet-awesome
📽️ Join as a channel member: youtube.com/@KevinPowell/join
💖 Support me on Patreon: patreon.com/kevinpowell or through YT memberships: Join this channel to get access to perks:
youtube.com/channel/UCJZv4d5rbIKd4QHMPkcABCw/join

---

My editor: VS Code - 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.

Bluesky: https://bsky.app/profile/kevinpowell.co
Codepen: codepen.io/kevinpowell
Github: github.com/kevin-powell

---

And whatever you do, don't forget to keep on making your corner of the internet just a little bit more awesome!
Wrapper Classes: A Layout FoundationBuild smarter color systems with relative colorsborder-radius trickStop it with the useless declarations and work with the browser insteadHTML & CSS for Absolute Beginners: Creating and linking to a CSS fileMake a hover state stick forever with this simple trickQuick fix for scrolling issues (if done right)Two CSS one-liners3 essential shorthandsEasily transition to and from display noneAI is killing TailwindFloats are still relevant in 2025
Kevin Powell |

Wrapper Classes: A Layout Foundation

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER