What exactly is :root selector in CSS?

Поделиться
HTML-код
  • Опубликовано: 9 июл 2024
  • НаукаНаука

Комментарии • 22

  • @CeeTheJay
    @CeeTheJay Год назад +1

    I appreciate how you break things down so clearly. Definitely helpful. Thank you, Zoran!

    • @CSSWeekly
      @CSSWeekly  Год назад

      Thank you so much for the kind words! I’m thrilled to hear that it’s clear! 🙂

  • @D7460N
    @D7460N Год назад

    Very good. Thank you for posting.

    • @CSSWeekly
      @CSSWeekly  Год назад

      Thanks so much for watching and commenting! 🙏

  • @ScriptRaccoon
    @ScriptRaccoon Год назад +2

    I didn't know that tbh! I just put the variables on the :root since everybody did that and it worked globally.
    I wondered if it would make any difference to put the variables on the body tag? I mean, this is where we want to style things, right?

    • @CSSWeekly
      @CSSWeekly  Год назад +1

      I’m glad to hear you learned something! 🙏
      Sure, you can put variables on body tag, it won’t make any practical difference, I think. 🙂

  • @jmsherry
    @jmsherry 2 месяца назад +1

    Slightly tangential: I keep seeing videos where the camera is inset as a circle and also a few times where you highlight blocks of code (e.g. 38s in): I was wondering what software is used to so that? (I think it'd be handy for me when explaining things at work to others).
    Thanks! :)

    • @CSSWeekly
      @CSSWeekly  2 месяца назад +1

      Thanks for your question, James! 🙏
      I'm using Screenflow to record and edit my RUclips videos, so I do all of this manually. There are some practical apps like Loom that make this a bit easier. I used Loom at work precisely to demonstrate/explain things to others quickly. 🙂

    • @jmsherry
      @jmsherry 2 месяца назад +1

      @@CSSWeekly That's awesome! Thank you for the tips! :)

    • @CSSWeekly
      @CSSWeekly  2 месяца назад

      You're very welcome, James! 🙂

  • @JohnnyB.Good10
    @JohnnyB.Good10 Год назад +1

    good to know!👍👍

    • @CSSWeekly
      @CSSWeekly  Год назад

      Thank you, I’m glad to hear you found it useful! 🙂

  • @bogdanlazy1997
    @bogdanlazy1997 6 месяцев назад +1

    Man, u look incredible!
    btw thanks for video

    • @CSSWeekly
      @CSSWeekly  6 месяцев назад

      Thanks! 🙏
      This was actually recorded before I turned 40-so check out new videos, I look even more incredible now! 😉

  • @activenode
    @activenode Год назад

    Nice one.

    • @CSSWeekly
      @CSSWeekly  Год назад

      Thank you so much for watching and for your nice comment! 🙂

  • @AdilKhan-vf2es
    @AdilKhan-vf2es 9 месяцев назад

    Good stuff bro

    • @CSSWeekly
      @CSSWeekly  9 месяцев назад

      Thank you so much, my friend! 🙏

  • @codeforest468
    @codeforest468 Год назад

    Nice video, again. Keep up the good work.. Also, first again!

  • @JoshuaCodes
    @JoshuaCodes Год назад +2

    Shouldn't the title say: What exactly is :root pseudo-class in CSS? as :root is a pseudo-class & not a pseudo-element.

    • @CSSWeekly
      @CSSWeekly  Год назад +1

      Oh my, indeed it should. That’s a significant blunder. 🫣
      I’ll change it immediately. Thanks for pointing it out, Joshua! 🙏