Title: CSS inline opacity doesn&#039;t work
Last modified: August 30, 2016

---

# CSS inline opacity doesn't work

 *  Resolved [blazsek](https://wordpress.org/support/users/blazsek/)
 * (@blazsek)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-inline-opacity-doesnt-work/)
 * Hi!
 * I am trying to set a background color for the text on the slider. I want the 
   background color to be semi-transparent. So I did the following:
 * <span style=”background-color: rgba(69,69,69,0.5);”>HERE IS THE FRONTPAGE TEXT!
   </span>
 * It seems like the rgba function doesn’t work. I also noticed that the CSS opacity
   property is also not working.
 * How to set opacity for the background color? Could you help me with that, please?
   Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Theme Author [OptimizerWP](https://wordpress.org/support/users/layerthemes/)
 * (@layerthemes)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/css-inline-opacity-doesnt-work/#post-6700688)
 * Hi
 * Insert this in Appearance -> Customize -> Miscellaneous -> Custom CSS
 *     ```
       .stat_content_inner span{
           background-color:rgba(69,69,69,0.5);
       }
       ```
   
 * Thanks
 *  Thread Starter [blazsek](https://wordpress.org/support/users/blazsek/)
 * (@blazsek)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/css-inline-opacity-doesnt-work/#post-6700891)
 * Thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘CSS inline opacity doesn't work’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/optimizer/0.7.4/screenshot.png)
 * Optimizer
 * [Support Threads](https://wordpress.org/support/theme/optimizer/)
 * [Active Topics](https://wordpress.org/support/theme/optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/optimizer/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [blazsek](https://wordpress.org/support/users/blazsek/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/css-inline-opacity-doesnt-work/#post-6700891)
 * Status: resolved