CSS for table

Hi all I have this table but I am getting problems validating the html as it says height is not allowed. I am trying to line up the images and put padding on them to center them and also align the yellow images with the links http://3woodgolf.net/test.htm How can I do this properly? Thank you

I presume you use XHTML strict. Inline styles are not allowed using strict. Declare your styles in CSS and apply them accordingly

How do I do that for the tables and trs in this case? Sorry bit confused

Something like this:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#main {
	width: 600px;
	height: 400px;
}

#main tr {
	height: 40px;
	background: #FF0000;
}
</style>
</head>

<body>
<table id="main">
<tr>
<td>&nbsp;</td>
<td>&nbsp;</td>
<td>&nbsp;</td>
</tr>

</table>

</body>
</html>


you could simply use:


table {
	width: 600px;
	height: 400px;
}

but since I don’t know how many tables are in use I gave the table an #id

Thanks!

Thanks