DIVS Horizontal Center

[Total: 0    Average: 0/5]

This shows a better way to center a div horizontally on your page since there is a feature (some call a bug) in NS.

Body Code:

<center>
MY NORMAL CENTERED TEXT
</center>
<style type="text/css">
#centerLayer {position:absolute; top:550;}
</style> 
<span id="centerLayer">
<center>
<table width="100%" align=middle bgcolor="blue">
<tr>
<td width="100%" align=middle valign=top bgcolor="red">
<font color="white">MY DIV CENTERED TEXT</font>
</td>
</tr>
</table>
</center>
</span>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *