Web Hosting Talk







View Full Version : Html


Carp
11-29-2004, 08:49 AM
Hey all....I have a table:


<table width="600" cellspacing="0" cellpadding="0" border="1" bordercolor="#000000" align="center">
<tr>
<td><img src="gmvs.gif"></td>
</tr>

<tr>
<td bgcolor="#008200"><center><a href="home.php">Home</a> | <a href="history.php">History</a> | <a href="settings.php">Settings</a> | <a href="logout.php">Logout</a></td>
</tr>

<tr>
<td>
**** here
</td>
</tr>

</table>


How do I make it so there is no blank line under the first <tr>.....Like I want there to be the border around the whole table, but not between the image and the link where the links are.

Thanks.

Nullified
11-29-2004, 09:03 AM
<table align="center" width="600" cellspacing="0" cellpadding="0" border="1" bordercolor="#000000">
<tr>
<td>
<table align="center" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td><img src="gmvs.gif"></td>
</tr>
<tr>
<td><center><a href="home.php">Home</a> | <a href="history.php">History</a> | <a href="settings.php">Settings</a> | <a href="logout.php">Logout</a></td>
</tr>
<tr>
<td>
**** here
</td>
</tr>
</table>
</td>
</tr>
</table>

the_pm
11-29-2004, 09:55 AM
Or if you don't feel like overcomplicating things with nested tables...
<table width="600" cellspacing="0" cellpadding="0" style="border:1px solid #000" align="center">
<tr>
<td><img src="gmvs.gif"></td>
</tr>

<tr>
<td bgcolor="#008200"><center><a href="home.php">Home</a> | <a href="history.php">History</a> | <a href="settings.php">Settings</a> | <a href="logout.php">Logout</a></td>
</tr>

<tr>
<td>
**** here
</td>
</tr>

</table>
Which begs the question - what exactly is the purpose of the table anyway?

Carp
11-29-2004, 03:26 PM
Ok, Thanks. I'm not at home but when I get there I will try it out. Also, I am using <STYLE> in the <head> of the page. I have the links set as a yellow color becuase the BG where the links are is red. I want to set the links in the "**** here" part to red. Can I do that in the <td> tag? Thanks.

the_pm
11-29-2004, 04:19 PM
Sure - just move the links into that section and apply the necessary style to that <td> to make its background red. But again, having a table at all seems entirely unnecessary...

I'd also move all of your styles into an external document once the page is complete, and do please replace that bgcolor element with a proper CSS counterpart ;)