I was trying to set the opacity of a image which is the background image of the div. When I used opacity=0.5, then it says "opacity is not known to CSS".
    <div style="background-image:url('../Images/MainBackground.jpg'); 
        opacity=0.5" class="main">
        <asp:ContentPlaceHolder ID="MainContent" runat="server"/>
    </div>
Then I changed the code from the sitemaster page to a seperate css file as shown below.
.main
{
     background-image: url('../Images/MainBackground.jpg');    
     height: 100%;
     opacity=0.5;
     padding: 0px 12px;
     margin: 12px 8px 8px 8px;
     min-height: 420px;   
}
here also it says opacity is not known to css.
I want to set the opacity of div's background image to 0.5. Any help ?
I am using VS 2010 (C# 4.0)
 
    