CSS :has selector is Amazing! | How to use the CSS :has selector

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ธ.ค. 2024

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

  • @anonymous_246
    @anonymous_246 ปีที่แล้ว +5

    Please do make more of such videos , your way of explaining is phenomenal. 🔥🛐

  • @m.quarty
    @m.quarty ปีที่แล้ว

    I've checked right now, and finally the :has selector is now supported on the newer version of Firefox! 🥳🎉

  • @ademeier5615
    @ademeier5615 ปีที่แล้ว

    has:: is awesome!!! Like it. This is easy and great. You do a good job.

  • @ichiroutakashima4503
    @ichiroutakashima4503 ปีที่แล้ว +1

    Couldn't explain this any better! Thank you so much for always providing clear and concise explanations! This helped me understood the new aspect and want to try it out on the old projects!

  • @gopikrishnag41
    @gopikrishnag41 ปีที่แล้ว

    Amazing and easy to understand.. thx a lot

  • @XenomorphOrthodontist
    @XenomorphOrthodontist ปีที่แล้ว

    Thank you, @DaveGrayTeachesCode!
    Where do you follow new changes to CSS3?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว +1

      Variety of sources from mentions on Twitter to reading Medium and other articles. I always go back to MDN for details and CanIUse.com to check support.

  • @TORNADOafghanistan
    @TORNADOafghanistan ปีที่แล้ว

    Dave, you are the best. Thanks for all your efforts and helps. I'm appreciate of you

  • @robinheyer708
    @robinheyer708 ปีที่แล้ว

    19:50 The bubbleswitch worked differently for me... The left 20% had the gradient, then came the body's background color of lightslategray and the right 20% of that had the bubbles. Setting \background-size: 20% auto, auto\ seems to have fixed it. Is that correct?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      If it is different than my result, something in the code must be different. The same code will not be interpreted in two different ways.

    • @robinheyer708
      @robinheyer708 ปีที่แล้ว

      @@DaveGrayTeachesCode Hehe, no, it shouldn't! "Shit goes in, shit comes out. ", is what my father used to say about computers. ;) I'll go over it again.

    • @saarza9991
      @saarza9991 ปีที่แล้ว

      ​@@robinheyer708once I was doing project from this videos and my code worked differently, I worked 1 hour and found out I had coded something else, just 1 word changes the game 😅

  • @1conscience0dimension
    @1conscience0dimension ปีที่แล้ว

    I took some notes. Easier... thank you

  • @greentea2430
    @greentea2430 ปีที่แล้ว

    Thank you very much Dave for sharing knowledge with us beginners, appreciate it!

  • @Knards
    @Knards ปีที่แล้ว

    Excellent! I had forgotten CSS can be somewhat dynamic

  • @ajaynegiii
    @ajaynegiii ปีที่แล้ว

    Hello sir could you prepare a tutorial on "how to add a global loader in axios instance globally" .
    it would be really helpful.

  •  ปีที่แล้ว

    thanks you very much

  • @pastuh
    @pastuh ปีที่แล้ว +1

    :gas could activate other classes if it already have specific style

  • @TravinskiyVladislav
    @TravinskiyVladislav ปีที่แล้ว

    Thank you again, Dave

  • @kamilek2530
    @kamilek2530 ปีที่แล้ว

    Thanks for this video🥰

  • @bmehder
    @bmehder ปีที่แล้ว

    Great video as usual. Great pseudo selector too. 0.615 seems oddly specific. I feel like there is a hidden message here. 🙂

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      Thank you! No hidden message. Just a color I have used in the past. I think I originally created it with the opacity slider in the VS code color selector. I'm sure 0.6 is very close.

  • @codernerd7076
    @codernerd7076 ปีที่แล้ว

    Can I use has to be at the start of the video, like it's not supported fully yet and even after not everyone going to be on the latest update :(

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว +1

      Noted in the video with discussion of support and marked with a chapter. Support is over 81% currently with Chrome, Edge, and Safari all supporting - Firefox is lagging but is flagged which means support is coming soon there, too. I don't think CanIUse has to be at the start - support is coming fast and this video will age well my friend.

    • @codernerd7076
      @codernerd7076 ปีที่แล้ว

      @@DaveGrayTeachesCode let's hope so! It is great to have this in CSS! Firefox and Safari are the browsers that currently slowing down the JS and CSS world!

  • @akintobby
    @akintobby ปีที่แล้ว +1

    🥺🥺it seems you are releasing your ever impressive content way too fast sir, I can't seem to keep up anymore😋😋. I honestly need to buckle up.
    Thanks for your selfless service sir🎉💯💯💯

  • @dkorjey
    @dkorjey ปีที่แล้ว

    Hmmm, this video is pretty good. Why do you have so small amount of views?? Not fair...
    (Btw, what theme are you using)

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      Thank you! My theme choice: th-cam.com/users/shortsdp4u1NNFhtE

  • @2ka10rayhannaufalarrafi8
    @2ka10rayhannaufalarrafi8 ปีที่แล้ว

    Does anyone know what vscode theme is being used?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว

      I do! 😀 And I discuss it in this short: th-cam.com/users/shortsdp4u1NNFhtE

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

    so fucking good man, thank you!

  • @dexter4357
    @dexter4357 ปีที่แล้ว

    It doesn't work on firefox u.u
    When was this has selector released?

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว +1

      The last part of the video goes over the support. It has over 80% support and is flagged for Firefox. It already works in Chrome, Safari, and Edge.

    • @dexter4357
      @dexter4357 ปีที่แล้ว

      @@DaveGrayTeachesCode Thank you, Dave. You're the best!

  • @dopetag
    @dopetag ปีที่แล้ว

    :has() still has lack of support on some modern browsers. For example, Firefox.

    • @DaveGrayTeachesCode
      @DaveGrayTeachesCode  ปีที่แล้ว +1

      Noted in the video and marked with a chapter. That said, support is there for Chrome, Edge, & Safari - only Firefox is lagging but is flagged - support is coming soon there, too.

  • @sealuke2724
    @sealuke2724 ปีที่แล้ว

    Dope