Jump to content

Css Image Opacity / Transparency


orloxgr
 Share

Recommended Posts

As the title says i have some questrions regarding CSS Image Opacity / Transparency. As we can see there is an example of how to make a table transoarent with the test on it at 100% opasity at http://www.w3schools.com/css/css_image_transparency.asp My problem is that the code at that page doesnt work. I copied and pasted it in a new html document localy as it is. The text gets transparent with the box. I made the flower picrure png transparent and still it doesnt works.Anyone knows how its done? I mean 100% text in a 0.6 box?

Link to comment
Share on other sites

You don't use opacity if you only want the background to be transparent. For that, use a transparent PNG as the background and don't set the opacity of the object.The text in the W3schools example is transparent.

Edited by Ingolme
Link to comment
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
 Share

×
×
  • Create New...