I\'m trying to make the background-color
of a tr
opaque with this CSS:
.faded{
background-color: red;
height: 100px;
op
add this line to the head of your html, and the opacity will work fine
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
Try adding <!DOCTYPE html>
declaration. See this answer
If someone else has a problem, it helped me:
.foo {
opacity: 0.4;
position: relative; /* for IE */
}
More info
That appears to be yet another IE bug.. As a work-around, you could instead add the opacity
via the background property with a rgba()
color. Then simply add the opacity to the td
element.
Updated Example - results seem consistent across browsers.
.faded {
background-color: rgba(255, 0, 0, 0.4);
height: 100px;
}
td {
opacity:0.4
}