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

Gaps between images that i can't get rid of....

Status
Not open for further replies.

kiddobeav

Technical User
Oct 21, 2000
2
US
Please help,
On my website i have setup a table with images in 1 row and images in teh second row. When viewed, there is a small gap bewtwene the first row and second, throwing off my images byl ike 3 or 4 pixels. I have tried everything, and i cant get rid of the gap, and yes i do have cellspacing/cellpadding at 0.
Thanks in advance

chris [sig][/sig]
 
Hi Chris,

I cannot see what is you problem. Maybe you should post your code here so we can checkl. The following code works well in my computer (both IE and NS).


<html>
<head>
<title>Untitled</title>
</head>

<body>
<table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;>
<tr>
<td><img src=&quot;yourImage.jpg&quot;></td>
<td><img src=&quot;yourImage.jpg&quot;></td>
</tr>
<tr>
<td><img src=&quot;yourImage.jpg&quot;></td>
<td><img src=&quot;yourImage.jpg&quot;></td>
</tr>
</table>

</body>
</html>

Hope it help!

Shukui Guan
 
Make sure your
Code:
<td>
and
Code:
</td>
are on the same line, otherwise the newline is counted as a whitespace.

eg. instead of:
Code:
<td>
  <img src=&quot;&quot;>
</td>

use:
Code:
<td><img src=&quot;&quot;></td>

or for readibility, you can do this:
Code:
<td
  ><img src=&quot;&quot;
></td>
[sig]<p> Sincerely,<br><a href=mailto: > </a><br><a href= Anderson</a><br>CEO, Order amid Chaos, Inc.<br>
[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top