Jump to content

help with tables


ngreenwood6

Recommended Posts

I am trying to create a forum space like the one on this site. I have this code:

 

index.html:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table id="forum">

<tr>
<td colspan="3" style="background:repeat url(background.jpg);">Forum</td>
</tr>

<tr>
<td id="forum">Nick</td>
<td id="forum">Help with mysql Database!</td>
<td id="forum">09/12/2008</td>
</tr>

</table>

</body>
</html>

 

style.css:

 

#forum 
{
border:1px thin solid #000000;
}

 

but that is not what I want. I want a nice thin border around the outside of the whole thing and then just a line around the td's inside the second tr. It's hard to explain but what it looks like when you are looking at all the posts with the dividers.

Link to comment
https://forums.phpfreaks.com/topic/137113-help-with-tables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.