CSS: Opacity

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

CSS: Opacity

Post 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);
}
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post 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).
Post Reply