Click here to Skip to main content
15,895,667 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Does anyone can tell me why my "text gif file" cover the background picture? I want to show text only on the background picture.
How to fix it? Thanks.
Posted

Perhaps your GIF background isn't transparent. Or maybe the browser you are using doesn't support GIF transparency.
 
Share this answer
 
Comments
taichikungfu 6-Aug-10 13:16pm    
Thank you aspdotnetdev, I use Paint edit my Gif file to be transparent.
It is not working. Please advise.
AspDotNetDev 6-Aug-10 13:51pm    
Paint doesn't support transparency, so I don't understand how you think you are setting the transparency in Paint. Use one of the other free image editors that does support transparency, such as Paint.Net or GIMP.
taichikungfu 6-Aug-10 20:00pm    
Thank you very much. My question is not just create a image has a layer transparence. I try to design a web page has a background picture, and I want my another text gif file image over the background image has text only without boundary.
AspDotNetDev 6-Aug-10 22:47pm    
What do you mean by "without boundary"?
taichikungfu 7-Aug-10 0:29am    
It means transparent. My result is just like when we add comments here, the orange is my background picture image, the comments is my text gif file and has white background boundary. I want my result "Do not" has white color instead of like the top line we can see the orange color. thank your help.
Sounds like you are talking about image borders. This example shows how to remove them using CSS (a topic that is invaluable if you plan on doing any sort of serious web work):
HTML
<html>
<head>
	<style type="text/css">
		img
		{
			border-style: none;
		}
	</style>
</head>
<body>
	<a href="http://www.google.com/"><img src="img.png" /></a>
</body>
</html>

FYI, there are many websites that allow you to upload images. PhotoBucket is one of them. Also, you never posted any code. Next time you ask a question here, post some code that demonstrates the problem and you'll get a much quicker response.
 
Share this answer
 
Comments
taichikungfu 8-Aug-10 22:57pm    
I am appreciated you are so patient to try to help me.
I think my problem is still my logo image tranparency, because I can not see the background picture thru the logo. Please advise.
my code can not be seen in the comment.


























My problem code

<body >
<div style="background-image: url ('App_Themes/DarkBeer/images/bh_header.png'); height: 109px; width: 798px;" >

<img style="border-style:none; width: 259px;" src="Images/MyCraftShop.gif"
height="109px" alt="logo" />

</div>
</body>
 
Share this answer
 
v2
Looks like the problem is that your background image isn't loading at all. That's probably because you have a space between "url" and "(". This works for me:
HTML
<html>
<body>
	<div style="background-image: url('bh_header.png'); height: 109px; width: 798px;" >
		<img style="border-style: none; width: 259px;" src="MyCraftShop.gif" height="109px" alt="logo" />
	</div>
</body>
</html>

Note that it's odd you set the HTML height and the CSS width. Usually it's best to pick one or the other.
 
Share this answer
 
Comments
taichikungfu 9-Aug-10 22:55pm    
Can I have your E-mail? I can send you my page and code. Thanks.
AspDotNetDev 9-Aug-10 23:47pm    
No.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900