How to add CSS Gradient Color Overlay to background image

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

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

  • @joshuaolajide1479
    @joshuaolajide1479 5 лет назад +2

    This saved me several weeks of trying to add a gradient, lolz. Implemented it in javascript though. Keep up with the good work.

  • @tanvirahmedchowdhury2227
    @tanvirahmedchowdhury2227 4 года назад

    Thanks a lot, man, May Allah bless you...I couldn't use dark overlay on the image properly by using
    position: absolute,
    top:0,
    left:0,
    height:60vh
    blah blah bullshit. You've just saved my valuable time and given me such relief from huge tension.
    That's why I'm subscribing your channel and keep doing awesome work like this man.

    • @Divinector
      @Divinector  4 года назад

      glad that it helps

    • @chome4
      @chome4 4 года назад

      EXACTLY! So many timewasters who just want to show what they can do!

  • @tahminaakter4029
    @tahminaakter4029 3 года назад

    Linear gradient do not work my website plz help

  • @jehadkhaled906
    @jehadkhaled906 5 лет назад

    thank you very much

  • @cricket1409
    @cricket1409 7 лет назад +1

    Awesome

  • @gitlherme
    @gitlherme 5 лет назад +2

    i love you man, thanks!

  • @MostafaTiger1
    @MostafaTiger1 5 лет назад +1

    can you tell me the direction of the photo that you used in background in your computer pls because i have it in that direction C:\xampp\htdocs\img\1.jpg and it won't display :)

  • @manashsarker
    @manashsarker 7 лет назад +1

    Thanks

  • @stardom6243
    @stardom6243 7 лет назад +2

    thanks man

  • @alainhonorekubwayo8819
    @alainhonorekubwayo8819 4 года назад +1

    wow, this helped a lot! thanks

  • @CodeNewbies
    @CodeNewbies 7 лет назад +1

    good ... carry on

  • @Gyuszy781
    @Gyuszy781 6 лет назад

    Super cool

  • @banglamusicfactory1295
    @banglamusicfactory1295 7 лет назад +1

    Nice

  • @nandinibiswas9445
    @nandinibiswas9445 7 лет назад +1

    thanks for upload

  • @arsalanshaikh3763
    @arsalanshaikh3763 7 лет назад +1

    Thank u

  • @NeduZone
    @NeduZone 7 лет назад +1

    nice one ... thanks

  • @topabove4277
    @topabove4277 6 лет назад

    Nice video

  • @JDLearningTube
    @JDLearningTube 5 лет назад

    Nice Tuturial....

  • @asmaaderghal
    @asmaaderghal 5 лет назад

    Great!!

  • @tridentnaga8204
    @tridentnaga8204 5 лет назад +2

    What if Image not show up

    • @Divinector
      @Divinector  5 лет назад

      remove the bg image and see what happen

    • @tridentnaga8204
      @tridentnaga8204 5 лет назад

      @@Divinector url for image removed but URL tag is remain. but linear gradient is work. both color show up.

    • @Divinector
      @Divinector  5 лет назад

      then what that you want

  • @Prof_Farid
    @Prof_Farid 6 лет назад

    thank you very helpful

    • @Divinector
      @Divinector  6 лет назад

      Thanks, Mate. Please share

  • @pkproductions1623
    @pkproductions1623 6 лет назад

    How to set the gradient angle

    • @Divinector
      @Divinector  6 лет назад

      background:linear-gradient(to right, red, green, blue) or to left or etc etc

  • @Shibansh
    @Shibansh 3 года назад

    bruh in mine the gradient is coming many times over the image rather than once.?

    • @Divinector
      @Divinector  3 года назад

      have you used 100vh?

    • @Shibansh
      @Shibansh 3 года назад

      @@Divinector bruh yes this is the solution, I even asked this question in reddit and there as well they suggested rather than using cover us height as 100vh , it won't get optimised and show the full gradient overlay

    • @Shibansh
      @Shibansh 3 года назад

      Also mate an additional question, can i have multiple classes in one media query in css?

  • @Itsme-gs1zv
    @Itsme-gs1zv 6 лет назад

    "URL" is a different part, Why are you writing in "RGB" quotes?

    • @Divinector
      @Divinector  6 лет назад

      its easy to opacity by this way