CSS: set background image with opacity? -


so, can see in css references how set image transparency , how set background image. how can combine these 2 in order set transparent background image?

i have image i'd use background, bright - i'd turn opacity down 0.2. how can this?

#main {     background-image: url(/wp-content/uploads/2010/11/tandem.jpg);  } 

two methods:

  1. convert png , make original image 0.2 opacity
  2. (better method) have <div> position: absolute; before #main , same height #main, apply background-image , opacity: 0.2; filter: alpha(opacity=20);.

Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -