English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In working with a div layout, i want to make just one picture opaque. Does anyone have a code for that, or do i have to make the whole 'class' opaque and if so what would be the code for that.

2006-12-10 15:40:22 · 3 answers · asked by samaaron 1 in Computers & Internet Programming & Design

3 answers

I create a class with the opacity level I want then I place a div over the picture that I want over that picture assigned to that class.

Oh and to assign by ID use #

ie #tagname{}

not .tagname{}

2006-12-10 15:42:35 · answer #1 · answered by Anonymous · 0 0

give the image a class name with class="imageclassname" and then in your CSS, type:

.imageclassname {opacity:1;
-moz-opacity:1;
filter:alpha(opacity=100);
}

or use a name with name="imagename" and type

#imagename {opacity:1;
-moz-opacity:1;
filter:alpha(opacity=100);
}

if name="" doesn't work, try id="" instead.

. is for class name and # is for ID name.

2006-12-11 00:10:16 · answer #2 · answered by Rockstar 6 · 0 0

you have already identified that opacity is a css feature! just code it on one img tag by it's id.

2006-12-10 23:45:55 · answer #3 · answered by jake cigar™ is retired 7 · 1 0

fedest.com, questions and answers