I have been using a combination of table and CSS to center divs on my page. Here is the code I'm currently using:
<table width="69" border="0" align="center">
<tr>
<td width="59">
<div style="position:relative;">
<div style="position:absolute; text-align:left; top: 100px;">div2 content goes here</div>
<div style="position:absolute;text-align:left;">div content goes here</div>
</div>
</td>
</tr>
</table>
Check out this demo:
I am looking for an alternative way to achieve similar results, but using less code and relying solely on CSS. Any suggestions?