Page 1 of 1

CSS: Opacity

Posted: Sat Nov 08, 2003 1:38 pm
by d3ad1ysp0rk
Is there any way to get the background color of a input field, submit button, etc.. to have a low opacity, while the actual text (value) has 100%?

Code: Select all

input {
color:#000000;
font:normal 12px verdana;
border-color:#000000;
background-color:#FFFFFF;
border-style:solid;
border-width:1px;
margin-bottom:2px;
margin-left:2px;
filter:alpha(Opacity=45);
}
.submitbutton {
color:#000000;
filter:alpha(Opacity=100);
}

Posted: Sat Nov 08, 2003 11:55 pm
by Gen-ik
As far as I know using filters on an object causes the whole object, and it's contents / child objects, to adopt the filter(s).