need help with HTML tables

liunx

Guest
ive just started writnig in HTML so if this question looks really really stupid, once again, this is day 1 for me..<br />
<br />
im trying to make a table with 2 rows, each containg a BMP file. i keep getting some space between them and im trying to avoid that. no matter what i try the space is still there.<br />
<br />
ive attached a jpeg as an example.<br />
<br />
its a really simple code:<br />
<br />
<html><br />
<head><br />
<title> title </title><br />
</head><br />
<br />
<TABLE cellSpacing=0 cellPadding=0 width=756 border=0><br />
<TBODY><br />
<TR><br />
<TD width=756><br />
<IMG height=100 alt="" src=http://www.htmlforums.com/archive/index.php/"title.bmp" width=756 border=0><br />
</TD><br />
<TR><br />
<TD vAlign=center width=756><br />
<IMG height=100 alt="" src=http://www.htmlforums.com/archive/index.php/"title.bmp" width=756 border=0><br />
</TD><br />
</TR><br />
</TBODY><br />
</TABLE><!--content-->Hmm, .bmp images don't work in all browsers. You should resave the file as either .png or .jpg or .gif format instead. Besides, a .bmp file is usually massive and takes a long time to Download <!--more-->.<br />
<br />
<br />
<br />
Try this:<br />
<br />
<td width=756><img height="100" alt="some text" src=http://www.htmlforums.com/archive/index.php/"title.jpg" width="756" border="0"></td><br />
<br />
with the tags on the same line as the other code.<br />
<br />
<br />
<br />
Also, try to get into the habit of "quoting" all attribute values, and writing all tags and attributes in lower case.<br />
<br />
<br />
<br />
In this bit:<br />
<br />
</TD><br />
<TR><br />
<TD vAlign=center width=756><br />
<br />
you forgot to close the Table Row, before opening the new one. You'll need:<br />
<br />
</td><br />
</tr><br />
<tr><br />
<td valign="center" width="756"><!--content-->also:<br />
<br />
<TD vAlign=center width=756><br />
<br />
vAlign=center is not correct, for vAlign the values are:<br />
<br />
top<br />
middle<br />
bottom<br />
baseline<br />
<br />
for align the values are:<br />
<br />
left<br />
center<br />
right<!--content-->... where valign is Vertical Align and align is left to right positioning.<!--content-->
 
Back
Top