View Single Post
  #3 (permalink)  
Old April 4th, 2010, 06:10 PM
andypandyrox456 andypandyrox456 is offline
Registered User
 
Join Date: Apr 2010
Location: Planet Earth
Posts: 70
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by PeterPeiGuo View Post
here is a simplest example, and there are lots that you can do with CSS:
Code:
<html>
<head>
<style>
table {
	border-style:outset;
	border-width:1px;
	border-color:red;
	border-spacing: 0px;
}
td {
	border-style:outset;
	border-color:red;
	border-width: 1px;
	padding: 10px;
}
</style>
</head>
<body>
<table>
<tr><td>foo</td><td>foo</td><td>foo</td></tr>
<tr><td>foo</td><td>foo</td><td>foo</td></tr>
<tr><td>foo</td><td>foo</td><td>foo</td></tr>
</table>
</body>
</html>
Thanks, but I already figured it out. I didn't use the <td> element in my code, and then I realized that I should've, since it didn't take the place of the table element.
Reply With Quote