Nie wiem czy dobrze zrozumiałem o co Ci chodzi, ale tutaj masz przykład. Pamiętaj tylko, że nie działa jak on trzeba w niektórych starszych przeglądarkach (np. Opera 6.05):
Kod
<html>
<head>
</head>
<style>
body
{
text-align: center;
vertical-align: middle;
}
div
{
text-align: left;
background: yellow;
border: 1px solid #000;
position: absolute;
width: 300px;
height: 500px;
left: 50%;
top: 50%;
margin-top: -250px;
margin-left: -150px;
}
p
{
background: #00f;
width: 200px;
height: 200px;
margin: auto;
position: absolute;
left: 50%;
top: 50%;
margin-top: -100px;
margin-left: -100px;
}
</style>
<body>
<div>
<p>fdafd<br /><br /><br />asafds
</p></div>
</body>
</html>
Pozdrawiam