Cascading Style Sheets (CSS) is the web’s core styling language. For web developers, It’s one of the quickest technologies to get started with, but one of the hardest to master. Follow Una Kravets and Adam Argyle, Developer Advocates from Google, who gleefully breakdown complex aspects of CSS into digestible episodes covering everything from accessibility to z-index.
I can’t believe we’re already at the end of season 4! This season, we’ve been focusing on CSS gotchas and resolving these common CSS pitfalls. And alas, on our last episode of the season, we’re going to take a look back at all of those tips and tricks and pick some of our favorites to highlight in this recap episode.
Links:
Why isn’t percentage working → https://goo.gle/418EnBG
In this episode, Una and Adam talk about percentage resolution for various properties like font-size, padding height and width. They break down and explain why percentages may not work or may not be what you expected.
Links
Understanding CSS Percentage → https://goo.gle/3RhLJzG
CSS Box Sizing Module Level 3 → https://goo.gle/...
In this episode Una and Adam help you uncover moments where a sticky element isn't sticking. There are a couple of gotcha around implementing a sticky element and by the end of the show you'll know what they are and a few ways to work around them.
Links:
sticky stack - https://goo.gle/3QICxTz
sticky desperado - https://goo.gle/3sC3OPj
sticky slide - https://goo.g...
In this episode, Una and Adam discuss common gotchas with custom properties, which often feel fully reactive during use, but their limits and implementation details can popup at unexpected times and create a headache. They'll cover these situations and their solutions!
Links:
Value stages → https://goo.gle/3FDo7yA
How custom property values are computed →https://goo.gle/49cOUiQ...
In this episode we tackle one of the most asked questions of all CSS history.. how do I center this div? We'll cover multiple strategies that each have tradeoffs and super powers over each other.
Links:
Centering in CSS → https://goo.gle/3RRki02
Comparing grid and flex place-items and place-content → https://goo.gle/3ZE3NGM
Centering in CSS: A Complete Guide → ht...
On this episode of the #CSSpodcast, we’re diving into how to deal with glitchy animations in your code base!
Links:
MDN transform-style - https://goo.gle/45YFu8B
MDN backface-visibility - https://goo.gle/46mPvfE
Una Kravets (co-host)
Making the web more colorful ✨🎨 Web DevRel @googlechrome Unicorn face host of @toolsda...
In this episode, we tackle the issues around getting undesirable gradient results. Sometimes it's you, sometimes it's the color space. We'll help you identify, assess and remedy muddy gradients.
Links:
HD color guide - https://goo.gle/3RhyvmP
various gradients in color spaces - https://goo.gle/3Pc02TV
modern css gradient tool - https://goo.gle/3P4KxNI
In this episode we're shifting the topic to layout shift, that moment where you watch the page adapt to something lazily loaded which has impacted the layout in some way where you see content shift around.
Links:
CLS - https://goo.gle/3kle3AW
Optimizing CLS - https://goo.gle/3fxu6IE
CSS for Web Vitals - https://goo.gle/3E98gY9
Una Kravets (co-host)
...Too small? Too big? Learn how to make your images just right and all the reasons they might be looking a little funky when you’re adding media to your interface.
Links:
CSS for Web Vitals → https://goo.gle/3E98gY9
Learn Responsive Images → https://goo.gle/45EFuds
Aspect Ratio → https://goo.gle/3PdyjDS
Demos → https://goo.gle/3qJuQ6z & https://goo.gl...
In this episode we're overjoyed to overexplain why you may be having overflow in your page. somewhere over the rainbow, an overheating developer overcooked the inline sizes and ended up oversleeping for work the next day. Now let's overanalyze and overshare about CSS overflow.
Links:
The rules of Margin Collapse → https://goo.gle/441OGaH
Everything you need to know → https://g...
In this episode we explore why margin may not be working for you. We’ll teach you about block formatting contexts and margin collapsing! We'll make you the space you want in your designs!
Links:
The Rules of Margin Collapse → https://goo.gle/441OGaH
CSS Margins → https://goo.gle/4434Ctj
Learn more → https://goo.gle/3YrJDiw
Una Kravets (co-host)
In this episode we explore why z-index isn’t working for you. We’ll teach you about stacking context and how to make sure you’ve set yourself up for layering success! Join us on this journey through positioning, variable architecture, tools, and more, to bring those elements to light.
Links:
Stacking context → https://goo.gle/43It8jl
Una Kravets (co-host)
In this episode Una and Adam talk about CSS Nesting, per the current 2022 spec draft. They'll cover the syntax basics, some gotchas and of course a bunch of examples.
Links
Nesting 1 Spec - https://goo.gle/3VgnoJR
In this episode Una and Adam discuss subgrid, a special value for grid-template-rows or grid-template-columns. Learn the general details of usage, use cases, tips, tricks and gotchas, so you can use the feature with confidence.
Links
CSS Grid Spec - https://goo.gle/3EfjoDq
Media query range syntax is a really nice addition.
Links
In this episode Una and Adam cover changes to the color level 5 and new color level 6 specs, so you can stay HD on the topic. Plus, a dive into CSS color functions for manipulating colors.
Links
CSS Color Module Level 5 → https://goo.gle/3f8BgpT
:has() is a new CSS selector which allows developers to query for the presence of a child or state. It has been called the “parent selector”, but it’s much more than that! Using :has() you can style up and down a DOM tree, making this an incredible powerful feature. Learn how to take advantage of this new API with lots of examples in this episode.
Links
In this episode Una and Adam explain a non-CSS property, but very relevant front-end UI property, called inert. It's a way to have a visually guarded part of the UI also be guarded for keyboard and screen reader users.
Links
Inert spec - https://goo.gle/3SXid0C
Container queries (also known as @container) are a new entrypoint for truly component-based responsive design. In this episode, Adam and Una will walk you through how to use them, what browser support looks like, and upcoming features that will give you even more control over your responsive interfaces!
Links
Current and classic episodes, featuring compelling true-crime mysteries, powerful documentaries and in-depth investigations.
If you can never get enough true crime... Congratulations, you’ve found your people.
He’s a former Secret Service Agent, former NYPD officer, and New York Times best-selling author. Join Dan Bongino each weekday as he tackles the hottest political issues, debunking both liberal and Republican establishment rhetoric.
If you've ever wanted to know about champagne, satanism, the Stonewall Uprising, chaos theory, LSD, El Nino, true crime and Rosa Parks, then look no further. Josh and Chuck have you covered.
Listen to 'The Bobby Bones Show' by downloading the daily full replay.