Making background colors transparent


i have texture background image on container, inside contrainer have div tag have colored background black. there way change transparency settings black background texture of container show trhrough?

andrewmichel1 wrote:

is there way change transparency settings black background texture of container show trhrough?

 

yes, few options:

 

1. use opacity in css

/* use black background divs class name */

.transparent {

    zoom: 1;

    filter: alpha(opacity=80); /* ie. change required */

    opacity: 0.8; /* other browsers. match above. change required */

    background-color:#000;

}

 

2. use rgba

/* doesn't work on ie<9 */

.transparent {

     background-color:rgba(0,0,0,0.8); /* 0.8 alpha/transparency setting */

}

see: http://css-tricks.com/rgba-browser-support/

 

3. use .png file

create black png graphic transparent , add background div

.transparent {

     background:url(yourbgimage.png) repeat 0 0;

}



More discussions in Dreamweaver support forum


adobe

Comments

Popular posts from this blog

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: Twinview issues