I'm trying to add a gradient to a background image, so the gradient is coming from top and from the bottom, exactly like this - https://prnt.sc/qjqng6
The background image code -
body {
background-image: url('images/city.jpg');
background-position: top;
background-size: cover;
height: 900px;
margin: 0px;
}
I've tried adding the gradient, but I've only succeeded to add a gradient from bottom to top only.
I would appreciate if someone could help me with the code and explain how it works.