DiscoverError Code: CoffeeS4E3: New CSS features that got us excited
S4E3: New CSS features that got us excited

S4E3: New CSS features that got us excited

Update: 2024-03-31
Share

Description

Missing the old style of podcast episodes where we ramble a bunch about technical stuff? Well, here's another!


We talk about some of the new CSS features that were standardized in 2023. These features can be a big help in your everyday CSS writing!



  1. Container queries: what are they and how are they different than regular media queries?

  2. New viewport units: s- d- l- prefixes for your vw or vh units. How do these differ from our regular vw and vh units? Also, no more jumping interfaces when scrolling on mobile!?

  3. Nesting in native CSS!? What does the syntax look like? Is SCSS now obsolete? (no, no it's not)

  4. Gap property for flexbox: a small change that prevents a lot of annoying side effects of having margin or padding for spacing child elements.

  5. Individual transform properties! No more "transform: translateX(50%) rotate(30deg) scale(1.2);" but now each property gets its own name, like: "translate: 50% 0; rotate: 30deg; scale: 1.2;". What does this mean for transitions? Are there any gotchas?

  6. The new ":has()" selector is here! What does it do and is it true you can select the parent of an element?


All this and more in this old school episode of ECC!


Referenced blog (it's incomplete tho):
https://positivethinking.tech/insights/the-10-new-css-features-in-2023/

Comments 
00:00
00:00
x

0.5x

0.8x

1.0x

1.25x

1.5x

2.0x

3.0x

Sleep Timer

Off

End of Episode

5 Minutes

10 Minutes

15 Minutes

30 Minutes

45 Minutes

60 Minutes

120 Minutes

S4E3: New CSS features that got us excited

S4E3: New CSS features that got us excited

Cursief