@import "compass/css3";
.opacity-example {
background: red;
width: 40px;
height: 40px;
float: left;
}
#opacity-10 {
@include opacity(0.1);
}
#opacity-20 {
@include opacity(0.2);
}
#opacity-50 {
@include opacity(0.5);
}
#opaque {
@include opaque;
}
#transparent {
@include transparent;
}
@import compass/css3
.opacity-example
background: red
width: 40px
height: 40px
float: left
#opacity-10
+opacity(0.1)
#opacity-20
+opacity(0.2)
#opacity-50
+opacity(0.5)
#opaque
+opaque
#transparent
+transparent
.opacity-example {
background: red;
width: 40px;
height: 40px;
float: left;
}
#opacity-10 {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=10);
opacity: 0.1;
}
#opacity-20 {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=20);
opacity: 0.2;
}
#opacity-50 {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
opacity: 0.5;
}
#opaque {
filter: progid:DXImageTransform.Microsoft.Alpha(enabled=false);
opacity: 1;
}
#transparent {
filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=0);
opacity: 0;
}