Banner

Sponsor

Login


Welcome Back!
Guest
Guest

Register

Lost your password?

54 users online



pesky image pesky white border

pesky image pesky white border

Currently viewing this thread: 1 (0 members and 1 guests)


mic

mic

Status: Offline!

pesky image pesky white border

<div ID="logo" style="position:absolute; z-index:1; width:1px; height:1px">
<table width="163" height="85" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><img src="shak_logo.jpg"></td>
</tr>
</table>
</div>

I have this wonderful piece of code in a piece of html designed to do something simple, that is, put an image on screen. Am happy with this, although there are no doubt better ways of achieving the same result...Always looking to learn.

The problem is that I have this pesky white border around my image that I don't want to be there.

Can anyone tell me simply how this code should be written so i don't have the white border??

Thanks to ALL.

m i c

Wolfy834

Wolfy834

Status: Offline!

Try this:

Code:

<img src="YOUR IMAGE" style="border: 0;">

- OR -

<img src="YOUR IMAGE" border="0">

This should do the trick, though I'm not sure. Try either way, atleast.

___________________

http://www.sector7-halo.com/news/data/upimages/sig.gifhttp://www.sector7-halo.com/news/data/upimages/link2.jpg

mic

mic

Status: Offline!

that pesky white line is proving more indestructable than i was hoping. any other ideas? wolfy? anyone?

m i c

Wolfy834

Wolfy834

Status: Offline!

Can I see a screenshot of the page please? It would help a lot more.

___________________

http://www.sector7-halo.com/news/data/upimages/sig.gifhttp://www.sector7-halo.com/news/data/upimages/link2.jpg

mic

mic

Status: Offline!

Sure. Will send you the details. In the meantime can anybosdy else see where the problem might be and can offer a fix????

thanks

Jeff

Jeff

loves kitties and cuddles
Status: Offline!

Wolfy834's code should work.

Why are you displaying an image in a table, and nothing else? Tables are for tabular data only. Images aren't usually that. Double check and see if your table cells have borders on them, that might be the cause as well.

and yes, please post a screenshot, or even better, the location of the page so we can check out the source.

___________________

I've got a girlfriend! WOOT.

mic

mic

Status: Offline!

thanks iJeff

been out of action for a few days - now back...have removed the table...makes sense. Going thru a stage of overcomplicating things. Will put up the page and post the details

thanks

m i c

mic

mic

Status: Offline!

problem solved - it all came down to the original image. a very thin white line barely perceptible in photoshop unless you zoom in. thanks guys. you helped me sort some other stuff with your advice.

m i c

Quick Jump:

Main Navigation


Site & Graphic Design by Aeon Tan
Developed by Jeremie Pelletier & Scott Roach


NeverAPI generated this page in 0.0075 seconds.