I have a question about gradient in react js. when I use a gradient color it's not look like work correctly.
can someone explain to me why this is hapenning?
when I use a gradient color for my body this happening:enter image description here and it's my code:
body {
background-image: linear-gradient(to right top, #baac39, #e78521, #ff444b, #ff0092, #c512eb);
}
I try it with a lot of gradient code but always this is happening. but when i add a "height" it's work correct and show me this:enter image description here it's my new code :
body {
background-image: linear-gradient(to right top, #baac39, #e78521, #ff444b, #ff0092, #c512eb);
height: 1000px;
}
why this happening?
and it's correct i use "height" for fix it?