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

HTML and Table

Status
Not open for further replies.

samesale

Programmer
Sep 15, 2003
133
0
0
US
I have written the following program to show a text, a photo, and a table. However, table does not line up and spaces are not long enough to show the text in each column. Please help.

<table width="100%" >
<tr><td><font size=3><br><b>THIS SITE IS .<br> </td></tr>
<tr><td> <img src="images/tar.jpg" width="250" height="100"> <br> </td></tr>

<tr >
<TD colspan=4><B><FONT color=blue>Cost for without a picture </FONT></B> </td>
<TD colspan=4> <B><FONT color=blue>Cost for with a picture </FONT></B></TD>
</tr>

<TR>
<TD><B><FONT color=red> $3 for 10 Days </FONT></B></TD>
<TD><B><FONT color=red>$ 5 for 20 Days </FONT></B></TD>
<TD><B><FONT color=red>$ 8 for 30 Days</FONT></B></TD>
<TD><B><FONT color=red>$ 16 Until Sold (4 months max.)</FONT></B></TD>
<TD><B><FONT color=red>$ 6 for 10 Days </FONT></B></TD>
<TD><B><FONT color=red>$ 8 for 20 Days </FONT> </B></TD>
<TD><B><FONT color=red>$ 11 for 30 Days </FONT></B></TD>
<TD><B><FONT color=red>$ 20 Until Sold (4 months max.) </FONT></B></TD>
</tr>
 
In my opinion, the following table is a bit more tidy...

Code:
<table width="100%" border>
<tr><td colspan=8><font size=3><br><b>THIS SITE IS .<br> </td></tr>
<tr><td colspan=8> <img src="images/tar.jpg" width="250" height="100"><br></td></tr>

<tr >
    <TD colspan=4><B><FONT color=blue>Cost for without a picture </FONT></B> </td>
    <TD colspan=4> <B><FONT color=blue>Cost for with a picture </FONT></B></TD>
</tr>

<tr> 
    <TD width="12.5%"><B><FONT color=red>$ 3 for 10 Days </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 5 for 20 Days </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 8 for 30 Days </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 16 Until Sold (4 months max.) </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 6 for 10 Days </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 8 for 20 Days </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 11 for 30 Days </FONT></B></TD>
    <TD width="12.5%"><B><FONT color=red>$ 20 Until Sold (4 months max.) </FONT></B></TD>
</tr>
 
It worked. I appreciate your help. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top