Re: stupid (HTML) question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Will

As suggested by Monsieur Jay, a bit of CSS...

....
<style type="text/css">
.centerTable {
	text-align: center;
}
.centerTable table {
	position: absolute;
	top: 50%;
	left: 50%;
	width: tableWidth;
	height: tableHeight;
	margin-left: -(tableWidth/2)px;
	margin-top: -(tableHeight/2)px;
}


</style>

.....

<div class="centerTable">
<table border="1">
<tr>
<td>1</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>4</td>
</tr>
</table>
</div>

HTH

Raz

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux