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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I'm having problems with an image w

Status
Not open for further replies.

TonyU

Technical User
Feb 14, 2001
1,317
US
I'm having problems with an image when place on a table.
here's the code

Cells where logo is:
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor=&quot;e68c4a&quot; width=&quot;100%&quot;>
<TR bgcolor=&quot;#8E959D&quot;>
<TD ROWSPAN=3 bgcolor=&quot;#e68c4a&quot; valign=&quot;top&quot; width=&quot;66%&quot;>
<div align=&quot;left&quot;><img src=&quot;../INTRANETLOGO.gif&quot; width=&quot;450&quot; height=&quot;59&quot; LEFTMARGIN=&quot;0&quot; TOPMARGIN=&quot;0&quot; MARGINWIDTH=&quot;0&quot; MARGINHEIGHT=&quot;0&quot; align=&quot;top&quot;&quot;></div>
</TD>
<TD ROWSPAN=3 width=&quot;0%&quot;><font color=&quot;#333399&quot;></font> </TD>

For some reason, I'm getting a SPACE between were the logo is and where the other table begins and I don't know how to get rid of it

intranet.bmp



The white rectangle is where the image goes and the orange space is the space I'm getting using the code above. Can someone help me with this? Thanks
[tt]
&quot;The only ideas that will work for you are the ones you put to work.&quot;
[/tt]

banana.gif
rockband.gif
banana.gif

 
dunno if this is the reason but you've got an extra &quot; after top Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
Tony!

My HTML reference manual does not show any margin attributes for an image tag.

Why the div tag? My first guess is that is the source of the unwanted space. Put the align=left in the td tag.

Is there another cell in this row? You have first cell width = 66%, the second cell width=0%. Last time I looked the sum of cell widths is going to be 100%. What do you want the browsers to do with 66 + 0? What would it do with a column width of 0%?

 
thanks for math crash course.

but obviously this <TD bgcolor=&quot;#e68c4a&quot; width=&quot;34%&quot;> out.

I've taken the div tags to no avail.
[tt]
&quot;The only ideas that will work for you are the ones you put to work.&quot;
[/tt]

banana.gif
rockband.gif
banana.gif

 
I did it like this and it worked fine

<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 bgcolor=&quot;e68c4a&quot; width=&quot;100%&quot;>
<TR>
<TD bgcolor=&quot;#e68c4a&quot; valign=&quot;bottom&quot;>
<img src=&quot;../INTRANETLOGO&quot; width=&quot;100%&quot; height = &quot;95&quot;>
</TD><TR>
<TD><font color=&quot;#333399&quot;></font> </TD></TR></table> Saturday 12.00
im6.gif
im2.gif
im2.gif
20.00
im5.gif
im4.gif
im7.gif
3.00am
im8.gif
Sunday [img http
 
I found the problem. I had an empty row nested in there. Thanks all
[tt]
&quot;The only ideas that will work for you are the ones you put to work.&quot;
[/tt]

banana.gif
rockband.gif
banana.gif

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top