Everything you need to know about the currentColor keyword in CSS

แชร์
ฝัง
  • เผยแพร่เมื่อ 7 ก.ย. 2024

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

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

    As a front end web dev student you have NO IDEA the value your channel provides to me. You’re CRIMINALLY underrated and deserve so many more subs.

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

      Thanks for being a valuable member of the community. Its feedback like yours that gives me incentive to keep going with the channel. I'm glad you are finding values in these videos. Good luck with your studies. Thanks again!

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

      Sorry does your school specifically teach web dev?

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

      @@tegathemenace yes, i go to school specifically for Software Engineering with a focus on Web Development

  • @huus5682
    @huus5682 25 วันที่ผ่านมา +1

    really give me new ideas ho to use currentColor.

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

      I’m glad the video gave you some new ideas! It’s such a versatile feature.

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

    Hi. Is there any difference between currentColor approach and color: inherit ?

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

      Sorry for the late reply. Somehow I missed your comment.
      It depends... Basically, color: inherit vs color: currentColor will produce the same result but background-color: inherit and background-color: currentColor are two different things. The currentColor keyword actually uses the same value as set for the color property of the element. If the color property is not set then the cascade effect comes into play and looks for the color property defined for ancestors.

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

    👍👍

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