How to use background-image with gradient for a banner that doesn’t cover the whole screen in css? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

How to use background-image with gradient for a banner that doesn’t cover the whole screen in css?

I’m having a bad time with it ?

16th Nov 2019, 5:22 AM
Adao Abdala
Adao Abdala - avatar
2 Réponses
+ 5
add a class name to div and set the gradient background on that div instead of body
16th Nov 2019, 6:09 AM
Gordon
Gordon - avatar
16th Nov 2019, 1:45 PM
Calviղ
Calviղ - avatar