oops... excuse my original brainfart....
...ok this works in Gekko browsers as it should....
Code:
#layer
{ position: absolute;
display: table-cell;
vertical-align: middle;
top: 16px;
left: 16px;
width: 200px;
height: 200px;
border-style: dashed;
border-color: red;
visibility: visible;
}
but I guess you would have to do this to accomodate the stoopid IE:
Code:
<table id="layer">
<td valign="center">this text should be vertically
aligned in this layer.
But I don't how how to do it.
</td>
</table>