body {
background: url(uploads/images/site/background.jpg) no-repeat center;
background-attachment: fixed;
background-color: #000000;
color: #FFFFFF;
margin:1em; /* gives some air for the pagewrapper */
}
I want the main-div, to be transparant, to make the text more visible:
The part in red I added to have a transparant area, as is shown in http://www.w3schools.com/css/css_image_transparency.asp Example 3.div#main {
margin-left: 22%; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
margin-right: 2%; /* and some air on the right */
padding: 5px 0 0 0;
background-color: #FFFFFF;
/* for IE */
filter:alpha(opacity=60);
/* CSS3 standard */
opacity:0.6;
/* for Mozilla */
-moz-opacity:0.6;
}
This doesnt work though and if I put the code inside the body-div, only the text gets transparent not the image which is supposed to be.
Any ideas?
Ronny