table problems

table problems

Posted by: nascarcup81
Posted on: 2002-07-18 19:00:00

hey guys,
im designing a website for my temple and cant get this problem to go away- even though i specify that i dont want a border in my table it leaves space for one. here is my code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body marginheight=0 marginwidth=0 leftmargin="0" topmargin="0">
<table frame="void" rules="none" cellpadding="0" cellspacing="0" border="0">
<tr>

<td valign="bottom" colspan="2">
<img src="images/topbar.jpg" vspace="0">
</td>
</tr>

<tr>
<td valign="top" width="17%" height="200" bgcolor="#0000FE">
<font>hey</font>
</td>
<td>
<font>hi</font>
</td>
</tr>
</table>
</body>
</html>


the "hi's" are there just to give the table cells weight. a screenie of my problem can be found @ www.srcd.net/prob.jpg

o btw- where is my cgi-bin folder. both of these questions may sound dumb but i cant find the answer to either one :(
thanks,
nascarcup81

Hooked on foniks werked four mee.

Re: table problems

Posted by: vrillusions
Posted on: 2002-07-18 20:22:00

well, I'm working on that problem, but as for the cgi-bin, it's anywhere you want to be. They can be executed from anywhere. I, personally, made a cgi-bin to put everything in just so I know exactly where they all are instead of having them spreadout.

Do you have the top image availiable? a little hard to test it out by just the broken image :)

Re: table problems

Posted by: nascarcup81
Posted on: 2002-07-18 20:33:00

hey,
the image is @ www.srcd.net/topbar.jpg thanks for the help!

Re: table problems

Posted by: vrillusions
Posted on: 2002-07-18 20:49:00

Try this (what I added is in bold):
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body marginheight=0 marginwidth=0 leftmargin="0" topmargin="0">
<table frame="void" rules="none" cellpadding="0" cellspacing="0" border="0">
<tr>

<td valign="bottom" colspan="2">
<img align="middle" src="images/topbar.jpg" vspace="0">
</td>
</tr>

<tr>
<td valign="top" width="17%" height="200" bgcolor="#0000FE">
<font>hey</font>
</td>
<td>
<font>hi</font>
</td>
</tr>
</table>
</body>
</html>

Basically, all the table code looked ok, so then I looked into the graphic itself (i substituted a graphic I had for testing). adding align="bottom" didn't work. I tried align="middle" for the heck of it and it worked. So try that and it should fix it, as long as you don't put any text in the top table, then you would have to use CSS, which older browsers don't support.

Tested on IE 6.0 and Opera 6.01

Re: table problems

Posted by: nascarcup81
Posted on: 2002-07-19 06:25:00

that woked perfectly! thanks a ton

Tags: hey guystempleleavesspace