Tech Support Forum banner
Status
Not open for further replies.

Table Spacing Help

2K views 7 replies 3 participants last post by  v-six 
#1 ·
What am I doing wrong? I have a table and two rows each containing an image... I don't want any space inbetween the rows ie. the images should touch/line up so you see no background colour or anything else between them... It isn't working, what am I missing? There is a little space between the rows. Code of the <body> below...

(Works fine with Mozilla, not with IE6) - please help.




<body>
<center>

<table border="0" cellpadding="0" cellspacing="0" width="727">

<tr>
<td>
<img src="title.bmp">
</td>
</tr>

<tr>
<td>
<img src="menu.bmp">
</td>
</tr>

</table>

</center>
</body>
 
See less See more
#4 · (Edited)
thev said:
Yeah, thanks... no problem. Don't mind waiting... but still can't figure it out.

Cheers
Hi

http://www.tekbunker.com/test/

I ran the code and added below.

<table border="0" hspace="0" vspace="0" cellpadding="0" cellspacing="0" width="727">

I will add the URL as a screenie, incase I take it down,
 

Attachments

#6 ·
thev said:
Thanks but it still isn't working. Stayed the same. :(
Hi

try a F5 refresh with new code.

I used your code and it did what you said, then I added mine, and it did resolve..

here is the full code

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<body>
<center>
<table border="0" hspace="0" vspace="0" cellpadding="0" cellspacing="0" width="727">
<tr>
<td>
<img src="title.bmp"></td>
</tr>
<tr>
<td>
<img src="menu.bmp"></td>
</tr>
</table>
</center>
</body>
</html>
 
#7 ·
Weird...

Ok I tried just pasting your code in and it worked. Then I tried changing my code to do what yours was doing (only changes I saw was the hspace and vspace and it still didn't work. Eventually figured out what the problem is. Which seems strange to me - tell me if this is how it usually is cause I never knew before but...

WORKS:
<tr>
<td>
<img src="menu.bmp"></td>

ADDS SPACE:
<tr>
<td>
<img src="menu.bmp">
</td>

There was no space after the img tag either just the closing td tag was on the next line - is it supposed to do that? I didn't think it was. So much for my html indentation methods eh?

Thanks :) I feel much better now. *Relaxes*.
 
Status
Not open for further replies.
You have insufficient privileges to reply here.
Top