This always works in Opera, FF, IE, and Safari...
Here's how I would align the text:
Make x half of a. (dont' remove the negative symbol)
Make y half of b. (dont' remove the negative symbol)
Then...
Here's how I would align the text:
Code Select
.centertext {
position: absolute;
height: apx;
width: bpx;
top: 50%;
margin-top: -xpx;
left:50%;
margin-left: -ypx;
visibility: visible;
}
Make x half of a. (dont' remove the negative symbol)
Make y half of b. (dont' remove the negative symbol)
Then...
Code Select
<div class="centertext">
TEXT HERE
</div>