23 CSS features you should know (and be using) by now

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 มิ.ย. 2024
  • Links to all the demos we used are below 👇
    Huge thanks to Adam Argyle for joining me with this one! Make sure to follow him! nerdy.dev/
    - Twitter: / argyleink
    - Mastodon: front-end.social/@argyleink
    🔗 Links
    :focus-visible codepen.io/argyleink/pen/YzMjmjR
    :focus-within - codepen.io/kevinpowell/pen/ab... & codepen.io/kevinpowell/pen/jO...
    @media (hover) codepen.io/argyleink/pen/oNOPvbm
    fit-content() - codepen.io/kevinpowell/pen/xx...
    object-fit codepen.io/argyleink/pen/JjVaPrx
    aspect-ratio codepen.io/argyleink/pen/OJGoLBW
    accent-color - (I’m cheating here) codepen.io/web-dot-dev/pen/Po...
    caret-color - codepen.io/kevinpowell/pen/ab...
    border-image codepen.io/t_afif/pen/vYbdVjb and www.smashingmagazine.com/2024...
    scroll-padding & scroll-margin: codepen.io/kevinpowell/pen/eY...
    scroll-snap codepen.io/collection/KpqBGW
    overscroll-behavior codepen.io/argyleink/pen/ExEwMYY
    gap - codepen.io/kevinpowell/pen/md...
    columns - codepen.io/kevinpowell/pen/rN...
    drop-shadow() codepen.io/argyleink/pen/RwOYbXG
    matrix3d() codepen.io/argyleink/pen/ExJexZY and codepen.io/fta/pen/rNZrXp
    backdrop-filter - codepen.io/kevinpowell/pen/Rw...
    :any-link codepen.io/argyleink/pen/vYMzYxx
    :empty - codepen.io/kevinpowell/pen/md...
    :first-child & :last-child - codepen.io/kevinpowell/pen/Po...
    list-style codepen.io/argyleink/pen/rNmzGzW
    inset - codepen.io/kevinpowell/pen/qB...
    ⌚ Timestamps
    00:00 - Introduction
    00:49 - :focus-visible
    01:34 - :focus-within
    02:41 - hover media query
    03:46 - fit-content()
    05:06 - object-fit
    05:53 - aspect-ratio
    07:17 - accent-color
    08:22 - caret-color
    09:12 - border-image
    10:49 - scroll-padding
    11:58 - scroll-margin
    13:12 - scroll-snap
    15:08 - overscroll-behavior
    16:36 - gap
    18:26 - columns
    20:08 - bonus: text-wrap pretty and balanced
    20:59 - drop-shadow()
    21:31 - matrix-3d()
    22:52 - backdrop-filter
    24:12 - :any-link
    25:00 - :empty
    26:28 - :last-child and :last-of-type
    27:50 - custom list-style-types
    28:35 - inset
    #css
    --
    Come hang out with other dev's in my Discord Community
    💬 / discord
    Keep up to date with everything I'm up to
    ✉ www.kevinpowell.co/newsletter
    Come hang out with me live every Monday on Twitch!
    📺 / kevinpowellcss
    ---
    Help support my channel
    👨‍🎓 Get a course: www.kevinpowell.co/courses
    👕 Buy a shirt: teespring.com/stores/making-t...
    💖 Support me on Patreon: / kevinpowell
    ---
    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 TH-cam channel, make sure to follow me on Instagram and Twitter.
    Twitter: / kevinjpowell
    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!

ความคิดเห็น • 136

  • @astrit
    @astrit หลายเดือนก่อน +44

    This is wonderful, this is what the front=end developer community needs, so so good to see you both creating this type of content, really appreciate it.
    I have made so many good example with the focus state is actually just incredible what can be done these days and a pity that not many people know or apply these styles!

  • @p3k1n0
    @p3k1n0 24 วันที่ผ่านมา +2

    Adam Argyle is one of my CSS idols (together with Kevin obviously). Thank you for this video.

  • @SerenityForschen
    @SerenityForschen หลายเดือนก่อน +7

    I literally watch these and then add some of this to my preferred base code. As a deisgner/ front end dev person I really love that you get instant gratification with CSS code changes = visible difference. Anyway just added scroll-margin to my portfolio site. Most of these other tricks I picked up from your previous videos but love the collabe of two people showing how things work with different words. Thanks!

  • @LouiseJosephine
    @LouiseJosephine หลายเดือนก่อน +5

    Thank you! The more CSS I learn, the more properties I realise i still don't know! Most classes I take go over the same basics. I love seeing professionals share these newer properties or more intermediate/advanced techniques and their uses 😊

  • @einatblackrose
    @einatblackrose หลายเดือนก่อน +2

    Awesome video! Thank you for this, you really opened my eyes to some useful stuff I didn't know. And always great to see Adam featured in the videos. Keep it up ❤

  • @francescos7001
    @francescos7001 หลายเดือนก่อน +3

    Probably the most useful CSS video I watched this year. Great great work Kevin and Adam, keep it up!

  • @DarrenbyDesign
    @DarrenbyDesign หลายเดือนก่อน +2

    Love this video!!! and I appreciate the collabs you're doing with other CSS awesome peeps

  • @skeui
    @skeui หลายเดือนก่อน +1

    Loved it. Expecting more of you two legends.

  • @mrgerund3060
    @mrgerund3060 หลายเดือนก่อน +1

    amazing video, i outright used the filter for the drop shadow and wished i knew some of these earlier as well, would love to see more in the future

  • @soganox
    @soganox หลายเดือนก่อน +3

    @media (hover) just blew my mind. Thank you!

  • @paulwdoyle
    @paulwdoyle หลายเดือนก่อน +3

    Another great video ... Some great tips for inset uses ... among other useful tips ... Thanks 🙂

  • @CarlosAlexisG
    @CarlosAlexisG หลายเดือนก่อน

    This video is sooo good! Thanks for sharing Kevin and Adam 🔥

  • @itsPenguinBoy
    @itsPenguinBoy หลายเดือนก่อน +2

    You can give a horizontal and vertical value for gap separated by a space, which I have found really useful.

  • @MrBrady95
    @MrBrady95 หลายเดือนก่อน +2

    Lol, wow! I never thought I'd see this on the web ... @20:13 take care of "orphans" with text-wrap: pretty; I'm guessing it works for their counterpart, "widows" as well. Going to have to re-look at columns, but all of these tips are awesome! Super-like on this video, thanks!

  • @vuuzo
    @vuuzo หลายเดือนก่อน +4

    empty, overscroll-behavior and @counter-style are genius.

  • @isaacewing
    @isaacewing หลายเดือนก่อน +9

    --golden-ratio that deserves a like for sure++ 😀😀

    • @IceMetalPunk
      @IceMetalPunk หลายเดือนก่อน

      It deserves a like phi* sure

  • @axMf3qTI
    @axMf3qTI หลายเดือนก่อน +1

    since we're talking about centering things. display: grid; place-items: center;

  • @MaxWeir
    @MaxWeir หลายเดือนก่อน +1

    Was hoping to see Adam and thanks for having him on the show!
    Would've liked to have seen more of a discussion (more use cases, best practices, do's/dont's, performance etc) on the CSS properties a bit more as felt he was more watching/listening to you the majority of the time.
    I've seen many of his talks and he knows quite a bit so would've been nice to hear him talk a bit more.

  • @clevermissfox
    @clevermissfox หลายเดือนก่อน +11

    Ohh the @counter-style ive never heard of or seen. Same w matrix3d. So cool. ❤

  • @jfftck
    @jfftck หลายเดือนก่อน +4

    The scroll-margin and scroll-padding are harder to understand until you think about where you want the offset to be, margin is outside of the box and padding is inside.

  • @user-lg4ff2od5t
    @user-lg4ff2od5t หลายเดือนก่อน

    so many cool features! Love it

  • @FelixKlippe
    @FelixKlippe หลายเดือนก่อน

    There are some super smart ideas in this list! Love it

  • @outpost31737
    @outpost31737 หลายเดือนก่อน +2

    Thanks guys. CSS is a mine field so these resources/references are extremely useful in the real world.

  • @tobisalami
    @tobisalami หลายเดือนก่อน

    You're marvelous! Thank you!!

  • @ClarkeDesign
    @ClarkeDesign หลายเดือนก่อน

    More of this please - really good to visit the lesser known CSS, but older things we all may have forgotten about or how to use.

  • @KhaPiano
    @KhaPiano หลายเดือนก่อน

    Fantastic rapid fire video. Thanks 🙏

  • @pedrocosta3818
    @pedrocosta3818 หลายเดือนก่อน

    Super usefull!!! Great video, thank you guys!!!

  • @royhyde8842
    @royhyde8842 หลายเดือนก่อน

    Thank you very much guys for these... I quite like CSS and knowing these makes it more fun and forces one to think of all those situations my life could have been alot easier all this time.. Thanks once again.

  • @intervalia
    @intervalia หลายเดือนก่อน

    Great video!! Nice to be reminded of things that I KNEW and forgot.

  • @pendaco
    @pendaco หลายเดือนก่อน

    Wow, there's some good stuff in this video! Never knew to use border-image like that for an overlay. Will definitely trying to refactor that in some existing projects!

  • @VeitLehmann
    @VeitLehmann หลายเดือนก่อน

    Really nice collection of neat features that are rarely used! The hover media query is really cool for accessibility, I use it in a personal project only. I'll see how I can introduce it to my company. Text-wrap is what I'm just adding everywhere now. Caret-color was new to me, also the difference between scroll-margin and scroll-padding. And the border-image trick is also really neat, that's a property I almost never use, but this is a cool use-case!

  • @LePhenixGD
    @LePhenixGD หลายเดือนก่อน

    Amazing video Kevin! I didn't know about the :any-link pseudo-class! Btw you should've talked about the mix-blend-mode as well, for instance with the difference or the screen

  • @jamshediqbal7936
    @jamshediqbal7936 หลายเดือนก่อน

    I like these kind of videos. They are very informative and useful. Please make such more..

  • @alanbloom20
    @alanbloom20 หลายเดือนก่อน

    Wasn’t expecting to come across something I wasn’t familiar with but the fit-content() function is a first. Fantastic!

  • @GilGoldshlager
    @GilGoldshlager หลายเดือนก่อน

    Great stuff really useful 👍

  • @trunglevan860
    @trunglevan860 หลายเดือนก่อน

    I love it, thanks Mr. Kevin

  • @MartinDoudoroffLLC
    @MartinDoudoroffLLC หลายเดือนก่อน +3

    Thanks!

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      Thanks so much!

  • @MojtabaSeyedi
    @MojtabaSeyedi หลายเดือนก่อน

    Awesome video!

  • @mannixmd
    @mannixmd หลายเดือนก่อน

    So happy to say that i knew and used most of those before :D

  • @joelpww
    @joelpww หลายเดือนก่อน

    That was so good. Object fit just got me. If at 5 mins in i already found one i'm not familiar with, i expect to get alot from this video

  • @naranyala_dev
    @naranyala_dev หลายเดือนก่อน

    breathtaking collabs

  • @barbabilios
    @barbabilios หลายเดือนก่อน

    Super interesting guys!!!

  • @fredhair
    @fredhair หลายเดือนก่อน

    Didn't know about the media query for hover devices, that's really useful

  • @ohuela
    @ohuela หลายเดือนก่อน

    wow access-color is great. thank you

  • @Piscesluna
    @Piscesluna หลายเดือนก่อน

    This is neat, thanks for the video and info. :)

  • @geokongr
    @geokongr หลายเดือนก่อน

    Very enlightening! I would add currentColor value to the list, it comes in handy to change color to properties universally.

  • @sharifsircar
    @sharifsircar หลายเดือนก่อน

    Thank you for this

  • @N0TZ3R0
    @N0TZ3R0 หลายเดือนก่อน

    Awesome, many thanks

  • @sanmeetsingh4538
    @sanmeetsingh4538 หลายเดือนก่อน

    Wow text-wrap pretty was so cool 😁😁

  • @WilliamShrek
    @WilliamShrek หลายเดือนก่อน

    This is fun!!!

  • @helsingking281
    @helsingking281 12 วันที่ผ่านมา

    top 3 for me:
    overscroll-behavior
    border-image
    inset + margin

  • @MrCrackerplays
    @MrCrackerplays หลายเดือนก่อน +14

    I don't see anyone else mentioning it nor any mention of it yet in the video but the video is very choppy to me (or at least the webcams are) like it's on a very low fps

    • @dennisjohnsen7908
      @dennisjohnsen7908 หลายเดือนก่อน +3

      Yes. same here. I cannot watch it.. Too low FPS. Unbearable unfortunately :( It's not only the webcam. It's the entire video! Even his graphics on top of screen at the start is low FPS.

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +13

      Yeah I'm not sure what happened to cause the issue. Everything looks fine in the file I have on my end, and it's fully processed by TH-cam... will keep digging to figure it out so it doesn't happen again.

  • @endrefasong
    @endrefasong หลายเดือนก่อน

    These are great bc there are so many things I sort of forget that I know, being both self taught and having ADHD as well as not working with css 100% of the time

  • @KarimShalapy
    @KarimShalapy หลายเดือนก่อน

    In my first job I was challenged to make a client story paginator using CSS, and I made an Engine with CSS and JS to paginate a story that comes to me in the form of XML. I actually tackled this challenge using CSS columns and an overflow hidden and I would scroll horizontally by the value of the column size + gap to jump between pages 😃😃

  • @thatmarinescienceguy
    @thatmarinescienceguy หลายเดือนก่อน

    Just opened VS code to work on a responsive nav bar (head>ul.nav-bar>li*4) and saw this video.. Thank you Kevin! I'm learning so much because of your channel and really appreciate you! PS - I'm from the time of tables and Geocities!

  • @BenRose3d
    @BenRose3d หลายเดือนก่อน

    Nice one

  • @imariohernandez
    @imariohernandez 29 วันที่ผ่านมา

    This is a great collection of tips. I am curious, could you show an example of expanding the background of an element to be 100vw using border-image? I am trying all kinds of ways and can't seem to be able to expand my element's background full width (outside of its container). Thanks guys.

  • @TechMainul
    @TechMainul หลายเดือนก่อน

    Awesome

  • @urvinkirindongo
    @urvinkirindongo หลายเดือนก่อน

    Amaaazing video.....

  • @metalbroga
    @metalbroga หลายเดือนก่อน

    Pure gold

  • @SamuelKarani
    @SamuelKarani หลายเดือนก่อน

    My CSS sensei with his CSS sensei

  • @JammieDragon2319
    @JammieDragon2319 หลายเดือนก่อน

    Hello, just a quick question. I'm working on a project and I forgot the name of the video you posted about Grid display. It's the one where you have have some divs fill width/columns and some half of the column. You used the grid-template-colimns,.

  • @pabloreyes6442
    @pabloreyes6442 หลายเดือนก่อน

    Filter drop-shadow just killed me. I was yesterday I was dealing with this thinking that only way was photoshop!

  • @espertalhao041
    @espertalhao041 11 วันที่ผ่านมา

    The problem with the :empty selector is that it doesn't do what you expect.
    Currently, none of the browsers assume that an element with just whitespace is empty.
    So, you have to do something like :empty, :not(:has(> *)) to get something kinda close to the expected.

  • @aspizuwastaken
    @aspizuwastaken หลายเดือนก่อน

    CEO of openheimer!!

  • @yaredbekuru
    @yaredbekuru หลายเดือนก่อน

    I don't know how many times i gonna watch it?
    maybe a 1000🧐

  • @OCEMTechZone
    @OCEMTechZone หลายเดือนก่อน

    Great🎉

  • @pokefreak2112
    @pokefreak2112 หลายเดือนก่อน

    Hover media query is interesting, I've always used @media (pointer: fine) up until now
    What are some devices that would be considered as having a coarse pointer but also having hover support? XR maybe?

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      That's a good question, I think there are some things like TVs or other things where you're controlling a cursor, but not with a mouse. It's probably a pretty small subset.

  • @travholt
    @travholt หลายเดือนก่อน

    Today I just released a redesign of one of our most visited pages. I could've used more than half of these tips in that redesign, so I guess I'm not quite done with it yet …!

  • @jfftck
    @jfftck หลายเดือนก่อน +1

    The overscroll-behavior: contain should be used very carefully, having regions on the page that stop the overall page scroll is jarring. I am getting to the point where I avoid inner scrollable boxes on the page as it makes using the page on mobile much harder and more frustrating. I can see using it in an app that doesn’t scroll the whole page, but most of the time that too will cause problems that increase complexity.

  • @chrisicotec7652
    @chrisicotec7652 หลายเดือนก่อน

    cool stuff.... but what is @layer geeneral-styling css media tag all about? in the focus within segment?

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      I was using cascade layers to say "all this stuff over here isn't related to the demo specifically" :) - layers are a way we can organize our stylesheets a little better, and browser support is finally hitting a level where we can start using them :)

    • @chrisicotec7652
      @chrisicotec7652 หลายเดือนก่อน

      @@KevinPowell ill definitely look forward to this, I think media queries have so much undicovered potential we are still waiting to find out so whenever i see something as a media query that im not familiar with it excites me a little

  • @johansmith2840
    @johansmith2840 หลายเดือนก่อน

    Just found a use case, used for folding "h" and "p" tags in html instead od "div"

  • @ajiteshmishra0005
    @ajiteshmishra0005 หลายเดือนก่อน

    What is the difference of using in header and body.

  • @AniaSkowronek
    @AniaSkowronek หลายเดือนก่อน

    Nice examples. However, it is clearly visible who among you has the gift of teaching ;)

  • @photomat
    @photomat หลายเดือนก่อน

    I learned new stuff today! Now I hope to remember that to put it to use ;) ..
    One sidenote on :empty, though. It only works when it is ENTIRELY empty. So if some back-end code generates HTML and puts even a space in there, you cannot style that away with :empty (it happens when you have a styled container with conditionally rendered children). You'll find yourself wrapping parent elements over rules in order to retain some indentation on your code. Ugh.

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      They updated the spec to include spaces with empty, but the browsers have yet to implement it. Looking forward to when they do!

  • @mendelgordon
    @mendelgordon หลายเดือนก่อน

    Before using overscroll behavior please keep in mind that on mobile, users often need to be able to overscroll to move up or down the page. I find sites which stop the overscroll from bubbling up to be extremely annoying, since on small screens I have no way to navigate the other parts of the page once I get “stuck” in an or the like.

  • @SpaceCadetKitty
    @SpaceCadetKitty หลายเดือนก่อน +1

    5 minutes in and im already updating my websites

  • @aram5642
    @aram5642 หลายเดือนก่อน

    Please come up with a short course on View Transitions specifically. That's the API that I feel most intimidated and overwhelmed with.

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      I have two videos where I've used them (one for single-page, one for multi-page). I am looking at making a more in-depth video focusing on them specifically though :)

    • @aram5642
      @aram5642 หลายเดือนก่อน

      @@KevinPowell Yes please! Yes yes please! Please make it clear when meta in html as well as document.startViewTransition are necessary . Thank you. Always!

  • @dripcaraybbx
    @dripcaraybbx หลายเดือนก่อน

    Could something like .parent:has(form:focus-within) be used to low-light or blur out everything outside of a form?

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      The problem is, if you do something with opacity or blurring effect, it blurs that element and everything inside of it, so that would include the parent. You could potentially shift colors if you use custom properties, but you'd have to make sure you don't change anything in the child.

    • @dripcaraybbx
      @dripcaraybbx หลายเดือนก่อน

      @@KevinPowell Does :focus-within only apply to a form element or its immediate child? What about .parent:focus-within:has(form:focus-within)?

    • @GODWORDSorg
      @GODWORDSorg หลายเดือนก่อน

      @@dripcaraybbx :focus-within says "is any element inside this parent receiving focus? If so, style it THIS way." It's great for menus... focus within the parent to make dropdowns appear, and more.

  • @EricFressange
    @EricFressange หลายเดือนก่อน

    Very good and useful video ❤❤❤
    You have shown inline-size (width) and block-size(height) but you haven't explained it😅
    We want a second video with more tricks 🎉

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      haha, we did the thing in the video where we were trying to clear up that type of thing! 😆

    • @EricFressange
      @EricFressange หลายเดือนก่อน

      @@KevinPowell I will look at it right now then thx

  • @raymonds_food
    @raymonds_food หลายเดือนก่อน

    is there some difference between any-link and a[href] ?

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      I don't think so...

  • @tomaz-laurensoft
    @tomaz-laurensoft หลายเดือนก่อน

    tinha salvado aqui Paz seja contigo meu irmão, nao a dou como o mundo, mas como recebi do Senhor, duro está sendo meu deserto, mas esse deserto mesmo será minha maior coroa em Cristo ❤🙏🏻 ❤

  • @stephaniepeters2590
    @stephaniepeters2590 25 วันที่ผ่านมา

    Regarding :any-link, this is a new one for me, thanks! I guess a similar thing can be achieved with a[href]. W3C says that an without an href should be treated as a span, i.e. receive no special formatting, which I guess most uf us are doing wrong in our CSS anyway (Myself included) :)

  • @clevermissfox
    @clevermissfox หลายเดือนก่อน

    Fit-content is a function ? I thought it was just fit-content not fit-content(). Are max-content and min-content also functions?

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +5

      fit-content() is only for use within grid-template-*. The rest of the time, it's just the regular value... which definitely can be a bit confusing 😅

    • @clevermissfox
      @clevermissfox หลายเดือนก่อน +1

      @@KevinPowell thanks for replying- I looked it up and discovered as such. I have to play with it as I’m confused on how it works.
      This sentence from mdn really broke my brain
      “ The fit-content() CSS function clamps a given size to an available size according to the formula min(maximum size, max(minimum size, argument))”
      Hopefully it will make it on the list for future videos bc I’m not grasping how to use it at all. I really only have seen it with one value but that sentence makes me think it should have a clamp min, preferred, max .

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      It makes a lot more sense once you use it 😁

  • @josegamarra3532
    @josegamarra3532 หลายเดือนก่อน

    Adam is so flirty and handsome 😅

  • @faiyazrasul2050
    @faiyazrasul2050 หลายเดือนก่อน

    you should focus on more complex designs with html , css AND JS like Hyperplexed PLEASEEEEEEEEEEEEE

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      The problem with those is they either make for *very* long videos most people aren't interested in, or nice, short videos like Hyperplexed does, but mine won't be anywhere near as good as his 😆

    • @faiyazrasul2050
      @faiyazrasul2050 หลายเดือนก่อน

      @@KevinPowell : /

  • @TesterAnimal1
    @TesterAnimal1 7 วันที่ผ่านมา

    `inset` is annoying in that it doesn’t handle RTL.
    Four values are always T R B L
    It should use T L B R in and RTL element.

  • @MichaelRichins
    @MichaelRichins หลายเดือนก่อน

    Why do we not have `gap-rule` to act just line `column-rule`. And it can be on the x and y axis. There are sometimes when I want a border in between elements and it's not as graceful

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      It's been talked about, and is on the table for the level 4 spec of Grid.

    • @MichaelRichins
      @MichaelRichins หลายเดือนก่อน

      @@KevinPowell Do you have the url for the spec or what the property name will be called?
      I believe to keep consistency it should be gap-rule.

  • @BauldyBoys
    @BauldyBoys หลายเดือนก่อน

    Really just not going to mention inline-size and block-size? Is this essentially width and height? Kind of like the new border-block syntax?

    • @Turabbo
      @Turabbo 29 วันที่ผ่านมา

      Yes and it's been around for years which is presumably why they didn't mention

  • @codernerd7076
    @codernerd7076 หลายเดือนก่อน

    OMGosh only was using :last-child and :last-of-type so far :S

  • @archibongdavid329
    @archibongdavid329 หลายเดือนก่อน

    What about css houdini, @property

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      That's a great one 😀

  • @jfftck
    @jfftck หลายเดือนก่อน

    I found a bug in Safari when using columns, it will draw garbage text in the last column when the text isn’t long enough to wrap to that last column. So, every Apple user that is using a device that forces the WebKit rendering engine will have a broken layout.

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      Huh, that's a weird one...

    • @jfftck
      @jfftck หลายเดือนก่อน

      @@KevinPowellIt is weird, seeing that this is one of the oldest properties you covered in this video. I can even share my website with the behavior, I am just going to leave it as is and hope that at some point in the future Apple will allow other rendering engines. I have only a minimal amount of effort that I am willing to spend on things like this and, Apple actively blocking competition on many of their devices, doesn’t motivate me to find a solution to a problem that they are creating in the first place. This is much worse than the IE issue of the past, as Apple isn’t allowing alternatives that could benefit their users.

  • @benwarped7272
    @benwarped7272 7 วันที่ผ่านมา

    Guy looks like he is in LoOoOOoOoVe with you 💋❤

  • @treshi
    @treshi หลายเดือนก่อน

    Wow, thanks for showing `:any-link`, I think I have something that would be shorter or easier to write using this pseudo-class.

  • @johndjameson
    @johndjameson หลายเดือนก่อน

    :focus-within should be deprecated IMO. :has(:focus) is equivalent and the better :has(:focus-visible) solves stuck focus

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน

      I don't think they'll deprecate it, just like they won't deprecate :focus either... but a :focus-visible-within might be nice (or update the current version to work that way).

  • @MatichekYoutube
    @MatichekYoutube หลายเดือนก่อน

    when a high iq person goes - "i can not spell proximity/mandatory, oh my god.." - thanks guys - this was super fun tutorial

  • @anullbz
    @anullbz หลายเดือนก่อน

    Dude, are you @itsKingChris father?

    • @lyon-dev
      @lyon-dev หลายเดือนก่อน

      🤣

    • @KevinPowell
      @KevinPowell  หลายเดือนก่อน +1

      Wish I could reply with something witty, but I have no idea who that is 😅

  • @DavidBrown-bs7gg
    @DavidBrown-bs7gg หลายเดือนก่อน

    Why talk about :focus-within when you can use the far more useful :has

  • @SRG-Learn-Code
    @SRG-Learn-Code หลายเดือนก่อน +1

    Delete mdn and just give me this guys to show me everything!

    • @anxpara
      @anxpara หลายเดือนก่อน

      noooo mdn has the best docs!

  • @zeddash
    @zeddash หลายเดือนก่อน

    9:00 I achieved this (CodePen /z-/pen/owqVvB) by changing the colour of the input to what I want the caret, then make the text fill transparent, and then use text-shadow to colour the text. It is awful, but not too difficult; however I have never once needed or wanted it in a project as it's not what the user expects