centering a div within a div...

The relevant CSS:

#right{
margin-left:300px;
}
#left{
position: absolute;
left: 5px;
padding: 0px;
width: 300px;
text-align: center;
}
#links{
width: 150px;
}


The relevant HTML:

<div id="right">
<p>This is one way you can get in contact with me other than e-mail. Sign my guestbook, and I'll get back to you!</p>
</div>

<div id="left">
<div id="links">
<div class="framelink">
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.012guestbook.com/cgi-bin/guestbook.pl?a=38501">Sign my guestbook</a>
<hr />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.012guestbook.com/cgi-bin/viewmessages.pl?a=38501">View my guestbook</a>
</div>
</div>
</div>


I'm trying to center the links div inside the left div. What am I doing wrong?#links{
margin: 0 auto;
width: 150px;
}Thanks, man!
 
Back
Top