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:
- convert png , make original image 0.2 opacity
- (better method) have
<div>
position: absolute;
before#main
, same height#main
, apply background-image ,opacity: 0.2; filter: alpha(opacity=20);
.
Comments
Post a Comment