locked
How to set background color with opacity=50% with html/css?

    Question

  • Hi, I try to set background color with opacity=50% in css, but it doesn't work.

    Is there any solution? I try to use following code, and also fail:

    .bg-translucent{
        background:rgba(0,0,0,0.5);
        filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7F000000,endcolorstr=#7F000000);

    }

    Thank you!

    Monday, August 26, 2013 2:48 PM

All replies

  • Can you explain in more detail what you are trying to do and what isn't working? What are you trying to set the background on? How does the expected behavior differ from what you are getting here.

    Can you provide sample code that gives more context into what you are trying to do?

    --Rob

    Wednesday, August 28, 2013 12:50 AM
    Moderator