css opacity code example Example: css opacity example .opacity30 { opacity: 0.3; filter: alpha(opacity=30); /* For IE8 and earlier */ }