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

java - nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet Hibernate+SpringMVC -

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

asp.net mvc - breakpoint on javascript in CSHTML? -