
August 16th, 2004
08:42 PM
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

August 16th, 2004
11:29 PM
Try this:
<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.
___________________



August 16th, 2004
11:45 PM
that pesky white line is proving more indestructable than i was hoping. any other ideas? wolfy? anyone?
m i c

August 17th, 2004
01:32 AM
Can I see a screenshot of the page please? It would help a lot more.
___________________



August 17th, 2004
03:45 AM
Sure. Will send you the details. In the meantime can anybosdy else see where the problem might be and can offer a fix????
thanks

August 17th, 2004
09:07 AM
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.

August 22nd, 2004
02:26 AM
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

August 23rd, 2004
07:04 PM
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