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!
New course! Every coder should learn Generative AI!
Try a free lesson
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 Answers
+ 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