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 derfloh 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
Joined
Oct 29, 2003
Messages
5
Location
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.
 
Have you tried the borders of the image itself?
 
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.
 
Any help would be great.
Miraculous too, since we can't see your code and we can't see your image - there's something wrong with one of them, but I don't feel like playing 20 questions.

Post up a link to the page and we'll take a look.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top