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

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -