Forum Moderators: open

Message Too Old, No Replies

spacer.gif not showing up right....

Not sure what the problem is...

         

newnewbie1

5:21 am on Feb 17, 2003 (gmt 0)

10+ Year Member



Hi!

I've got some webpages that use a spacer.gif - you know, a transparent 1-pixel gif that I stretch out to fill space in tables...

Anyway, for some reason, when my webpage loads, I can always see the outline of where it is - Like it's not there or something. Anyway, I have to hit refresh a couple of times before it fixes itself.

Here's the code:

<td valign="top" align="right" width="37"><img src="images/spacer.gif" width="37" height="15"></td>

Any suggestions? I've tried calling a javascript preload routine, and that doesn't seem to help either... Hmmmmm...

Also, I'm using spacer.gif all over the place on my webpage, but it's just doing this in one spot... Hmmmm...

msr986

5:51 am on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you using IE6.0? If you are, try using a different browser to see if the problem is still there. IE6 has a known rendering issue when it comes to small images.

newnewbie1

1:02 pm on Feb 17, 2003 (gmt 0)

10+ Year Member



Yes! When I use Netscape I don't have a problem at all.

And this is weird, because I'm using this spacer gif all over the place. It seems like though it just doesn't like it in this one spot... Hmmmmm....

tedster

1:11 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Did you run the code through a validator [validator.w3.org]? Sounds like there just might be a problem in that one area.

I've driven myself batty with that kind of thing, when a simple validator run eventually showed me that I accidentally deleted a ">" or something similarly non-trivial, but small and hard to see.

msr986

2:25 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Almost certainly an IE6 issue:

[groups.google.com...]

newnewbie1

3:57 pm on Feb 17, 2003 (gmt 0)

10+ Year Member



Eeeek! Tedster was right... I had a missing <tr> tag.

When I fixed that, my problem went away.

THANKS!

g1smd

9:05 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Explicitly stating:

<img src="images/spacer.gif" width="37" height="15" border="0" alt="">

might also have helped.

msr986

10:05 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> Almost certainly an IE6 issue

I've been wrong before :(

Let's give tedster a prize!