Hello,
I could not find the answer to this off of many searches at yahoo... How can I set the background color of my page and add a transparent image on top of that?
I just inserted "background-image:url(mypic.gif)" into the body{}. When I view it the image displays on a white background. Is there a way to change the color???There is a tag for making your background color transparent..
body { background-color:transparent; }
But I believe what you are trying to do can only be done in photo editing software such as Adobe Photoshop or Paint Shop Pro.
You have to cut out the image on one layer and place it on top of a transparent (100% opacity) layer.For a guess, you want this:
<body style="background: #c0c0c0 url(mypic.gif) no-repeat center;" >
I could not find the answer to this off of many searches at yahoo... How can I set the background color of my page and add a transparent image on top of that?
I just inserted "background-image:url(mypic.gif)" into the body{}. When I view it the image displays on a white background. Is there a way to change the color???There is a tag for making your background color transparent..
body { background-color:transparent; }
But I believe what you are trying to do can only be done in photo editing software such as Adobe Photoshop or Paint Shop Pro.
You have to cut out the image on one layer and place it on top of a transparent (100% opacity) layer.For a guess, you want this:
<body style="background: #c0c0c0 url(mypic.gif) no-repeat center;" >