Point is that then you can put your text (and images) directly in the DIV. You don't need the table.
You can center blocks in several ways. The old fashioned way you tried, <div align="center"> , still works under certain conditions, but it center its content. I.e. the table in this case. If you remove the width from the DIV so it spans the whole page you can see that the table is centered.
The modern way to center blocks is with CSS. You do that by giving the block equal left and right margins. They can be 'auto'. You also need to use a doctype that
puts browsers in Standards Mode.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Blah blah</title>
</head>
<body>
<div align="center" style="overflow: auto; height: 100px; width: 500px; border: 5px solid; margin-right: auto; margin-left: auto">
TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST TEST
</div>
</body>
</html>
What doctype you actually use is up to you. HTML or XHTM, Strict or Transitional - they can all trigger Standards Mode.
--
http://yupapa.com