Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Black on Black

Status
Not open for further replies.

daniel99mp

Technical User
Oct 29, 2003
5
0
0
US
I'm creating a web page that has a black background color. However, when I place a black image on it I have a white outline around it. Is there anyway to prevent this from happening. I tried messing with the border properties without any success. Any help would be great.
 
If the image is within an anchor element, you will probably find borders are added. Try adding a style property to yor image:

Code:
<img src="foo.gif" style="border:none;" />

Hope this helps,
Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Let's not assume the problem is solely HTML related...

Using a tool like photoshop you can trim the white borders off any images.

Cheers,
Jeff

[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
With scarce information given, I would attribute the problem to image having a white border itself as well.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top