Simple table layout sample: controlling table layout using CSS and also serves as a valid XHTML 1.0 Strict document.
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="#internal" media="all"?>
<!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" xml:lang="en" lang="en">
<head profile="http://www.w3.org/2005/10/profile">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>Table Layout Sample</title>
<style id="internal" type="text/css" media="all">
/* <![CDATA[ */
html, body {
border : none;
font : normal normal normal 95%/1.4 Verdana, Arial, sans-serif;
height : auto;
min-height : 600px;
margin : 0;
padding : 0;
text-align : center;
width : auto; }
body {
background-color : #f0f0f0;
color : #506070; }
table {
border : none;
border-collapse : collapse;
height : inherit;
min-height : 600px;
width : 100% !important; }
td, tr {
border : none;
padding : 0; }
td {
width : 100% !important;
vertical-align : middle !important; }
div {
border : none;
margin : 0;
padding : 0; }
div#main {
margin : 0 auto;
clear : both;
height : inherit;
min-height : 600px;
width : 100%; }
div#MyDiv {
margin : 0 auto;
height : 200px !important;
min-height : 200px;
max-height : 201px;
min-width : 400px;
max-width : 401px;
width : 400px !important; }
div#MyDiv div.tube {
background-color : #f7f7f7;
border : 1px solid #ccc;
padding : 1em;
height : inherit;
text-align : center;
overflow: hidden; }
/* ]]> */
</style>
</head>
<body>
<div id="main">
<table id="myTable" frame="void" rules="none" summary="Controlling table layout in CSS">
<tr><td>
<div id="MyDiv"><div class="tube">text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text </div></div></td></tr>
</table>
</div>
</body>
</html>
hope it helps...