Jump to content
Sign in to follow this  
lorenpenner

Opacity in main content area or canvas

Recommended Posts

lorenpenner

What do I change in the following code so that my background-color becomes 50% opacity but the text and images also don't change their opacity? I have an baclground image in the back that I want to show through. body #page {background-color: #000; filter:alpha(opacity=50); -moz-opacity: .50 opacity:.50;} The website page is: http://www.hjwfilms.com/about/

Share this post


Link to post
Share on other sites
lorenpenner

How could I code the opacity through a image file and get rid of the background color? Would this be easier. When I tried it last night I could seem to 1) either find the right item to add it to or didn;t code it correctly. You can see that I placed a background image in the back. Once the canvas background achieves opacity, it will show through. Any ideas?

Share this post


Link to post
Share on other sites
cmunns

when you do it as an image. You need to make sure you save the file as a transparent .png file How did you create the image/

Share this post


Link to post
Share on other sites
lorenpenner

I used Photoshop. I made a black square and applied a 50% opacity to it. I'm just not sure what part of the code I should apply it to and what might that additional could look like? I tried this and it didn't work: body #page {background-color: #000; background-image:url('http://www.hjwfilms.com/wp-content/uploads/2011/02/opacity50.png');} Am I missing something?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×