View Full Version : Im having a problem with tables...


Ambria
02-17-2003, 02:57 AM
Hello. :)

I just started making my site, and I have an image that's rather large and I'm trying to put a table under it. I want the table to have 2 columns and 1 row and I want the width of the table to be the same width as my image. I want the first column to be wide a little more than half the image, and the second column's width to be small. Everytime I try to put the width in my table code, The table always comes up shorter than the image and I need to know if anyone knows what's happening and how I could fix it.
The image's dimensions are 862 x 486.

If anyone could help me I'd greatly appreciate it.

Thanks.

Dude128
02-17-2003, 03:36 AM
can you post the code you are using and/or a link to the page?

Nerd4Life
02-17-2003, 04:39 AM
It should look something like this, right?

<table width=862>
<tr>
<td width=60%>
</td>
<td width=40%>
</tr>
</table>

Ambria
02-17-2003, 06:13 AM
Originally posted by Dude128
can you post the code you are using and/or a link to the page?

yea, sure.
the link is http://www.geocities.com/greenfroggy87/graffitipark.html




Originally posted by Nerd4Life
It should look something like this, right?

<table width=862>
<tr>
<td width=60%>
</td>
<td width=40%>
</tr>
</table>


no.. my code doesn't look like that... I think im confused about this stuff.. lol

Dude128
02-17-2003, 08:44 PM
try putting quotes around all your values:

such as width="1000" instead of width=1000

also, try using the hex codes, not color names, so:

bgcolor="FFFFFF"
instead of
bgcolor=white

also, you're missing a > after your second cell, right before the </td>

you should also have <html> and </html> tags, a head section, and a </body> tag

Ambria
02-17-2003, 11:39 PM
Originally posted by Dude128
try putting quotes around all your values:

such as width="1000" instead of width=1000

also, try using the hex codes, not color names, so:

bgcolor="FFFFFF"
instead of
bgcolor=white

also, you're missing a > after your second cell, right before the </td>

you should also have <html> and </html> tags, a head section, and a </body> tag


Ok. thanks. I'll try that. :)

Ambria
02-18-2003, 12:13 AM
Originally posted by Nerd4Life
It should look something like this, right?

<table width=862>
<tr>
<td width=60%>
</td>
<td width=40%>
</tr>
</table>


Thanks. Everything both of you told me worked. But on the code you posted Nerd4Life when I used that I keep coming up with one column instead of two.