I've recently found it can be accomplished with pure css...

Code:
<!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>
<style type="text/css">
tr {width:100%;}
td {width:25%;}
</style>
</head>
<body>
<div style="height:100px;overflow:auto;width:415px;">
<table width="400px" border="0" cellspacing="2" cellpadding="2" style="height:100px;overflow:auto;">
<tr style="position:absolute;">
<td bgcolor="#999999">woohoo!</td>
<td bgcolor="#999999">these</td>
<td bgcolor="#999999">fit!</td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
<tr>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
<td bgcolor="#ADC6EF"> </td>
</tr>
</table>
</div>
</body>
</html>
Last edited by Falkon303; 11-23-2009 at 11:30 PM.
document.write is document.wrong
Bookmarks