What browser are you using? The vertical-align property generally works in Internet Explorer but not in Mozilla, as near as I can tell.
If all else fails, you could use a JavaScript to move the DIV to the center of the page:
PHP Code:
<html>
<head>
<script type="text/javascript">
function centerText() {
document.getElementById('centeredText').style.left = (document.body.clientWidth / 2) - (parseInt(document.getElementById('centeredText').style.width) / 2) + "px";
document.getElementById('centeredText').style.top = (document.body.clientHeight / 2) - (parseInt(document.getElementById('centeredText').style.height) / 2) + "px";
}
</script>
</head>
<body onload="centerText()">
<div id="centeredText" style="width: 400px; height: 300px;">Centered Text</div>
</body>
</html>
You'll need to adjust the width and height of the DIV to match the dimensions of the text as closely as possible to get it perfectly centered.
[Chandler]Could the posting textarea
be any smaller on this site?[/Chandler]