html - How can I blend black background into the top of a b+w image using css? -


not sure how blend solid black background black , white image, posted in jfiddle

    <div class="background2"> </div>  <div class="background3"> </div> 

they both backgrounds of div boxes.

by blend if mean black background go on image, can make .background2 position: absolute; , edit according that.

eg:

.background2 { background: rgba(0,0,0,.7); position: absolute; height: 100%; width: 100%; z-index: 1; } 

here link updated fiddle


Comments

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -