html - CSS image as background with overlaying gradient color -


I have a picture as the backdrop of the list element.

I want to make a gradient of the background image overlay of the list item which should be transparent

CSS foreground, the image overlay should be like this:.

  .listItem {background: linear-gradient (white, black); Opacity: 0.2; }  

I can not wrap a div around the list element, because the structure does not accept it.


Comments

Popular posts from this blog

php - Select box validation (in laravel) -

Creating a sparse matrix in Matlab with a specified number of independent Bernoulli +-1 nonzero entries -

pandas - Iterate on Groupby Object's fields -