Also images I believe have a border, try setting it to 0. I know that when you make the image a link if you do not want the blue outline you set the border = 0. That may not be the case here, but maybe worth a try.
---Michael --- [EMAIL PROTECTED] wrote: > Hmmm.... > Instead of switching between HTML & ASP script many > times.... > > Do pure ASP and build a string that you just output > at the end. > This way you will be sure there are no spaces > between the end of one tag and > the start of another. > > I have had trouble in the past and it was due to the > space between closing > an HTML tag and opening my script tag... > > e.g > > <img......> <-- this space here will catch you > out! > <% > 'script here > %> > > > > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:nealweb@;telusplanet.net] > Sent: Tuesday, October 29, 2002 5:49 PM > To: ActiveServerPages > Subject: RE: Dynamically setting image values > > Yup, the space in the wrong place was at least part > of the problem. The > images > are now closer together although not right together. > I've tried setting > vspace > to 0 but that doesn't change anything. > > Thanks. > > > Quoting [EMAIL PROTECTED]: > > > You have spaces between the end of the img tag and > the start of your font > > tog. The [space] will be the same as the default > font size for the page, > > and thus may be taller than the size you are > specifying for the img. > > Remove the space or set the font size in the td > tags. > > > > -----Original Message----- > > From: Craig [mailto:nealweb@;telusplanet.net] > > Sent: Tuesday, October 29, 2002 2:45 PM > > To: ActiveServerPages > > Subject: Dynamically setting image values > > > > I'm dynamically trying to create a graph based on > values that come out of > > a database. Here's part of the code: > > > > <table cellspacing="0" cellpadding="0" > border="0"> > > <%If Calendar <> "0" Then %><tr><td><img > border="0" Height="6" > > Width="<%=Calendar*20%>" src="graphgifs/red.gif"> > <font face="arial" > > Size="1"><%=Calendar%> > Calendar</font></td></tr><%End If%> > > <%If Poster <> "0" Then %><tr><td><img > border="0" Height="6" > > Width="<%=Poster*20%>" src="graphgifs/blue.gif"> > <font face="arial" > > Size="1"><%=Poster%> Poster</font></td></tr><%End > If%> > > <%If Manager <> "0" Then %><tr><td><img > border="0" Height="6" > > Width="<%=Manager*20%>" src="graphgifs/green.gif"> > <font face="arial" > > Size="1"><%=Manager%> > Manager</font></td></tr><%End If%> > > <%If Online <> "0" Then %><tr><td><img > border="0" Height="6" > > Width="<%=Online*20%>" src="graphgifs/black.gif"> > <font face="arial" > > Size="1"><%=Online%> Online > Calendar</font></td></tr><%End If%> > > <%If Mouth <> "0" Then %><tr><td><img > border="0" Height="6" > > Width="<%=Mouth*20%>" src="graphgifs/yellow.gif"> > <font face="arial" > > Size="1"><%=Mouth%> Word of > mouth</font></td></tr><%End If%> > > <%If AwarenessOther <> "0" Then > %><tr><td><img border="0" Height="6" > > Width="<%=AwarenessOther*20%>" > src="graphgifs/orange.gif"> <font > > face="arial" Size="1"><%=AwarenessOther%> > Other</font></td></tr><%End If%> > > </table> > > > > It's working great except for one thing. I want > the image in each table > > row to be flush with the table row beneath it > without a bunch of extra > > spacing so it actually looks like a graph. I've > set cellpadding and > > cellspacing both to "0" and ensured there is no > table border yet I still > > get a few pixels of space between the table rows > :( > > > > Any ideas please? > > > > --- > > You are currently subscribed to activeserverpages > as: > > [EMAIL PROTECTED] > > To unsubscribe send a blank email to > > %%email.unsub%% > > > > --- > > You are currently subscribed to activeserverpages > as: > > [EMAIL PROTECTED] > > To unsubscribe send a blank email to > > %%email.unsub%% > > > > > > > > --- > You are currently subscribed to activeserverpages > as: > [EMAIL PROTECTED] > To unsubscribe send a blank email to > %%email.unsub%% > > --- > You are currently subscribed to activeserverpages > as: [EMAIL PROTECTED] > To unsubscribe send a blank email to %%email.unsub%% __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
