The first one is better as you are not taking the box out of the flow of the page. Using top and left with absolute positioning will do this...
For example if you had a fixed block to align center, then doing the margins with top and left is difficult as you don't know the width of the viewport.
e.g
#parent
{
//<gripe>why do we have to write like Americans? - CSS should be in international english :P</gripe>
text-align : center;
}
#child
{
margin : 0 auto;
text-align : left;
width : 600px;
}The hack is for IE5 Windows only.
Cheers
James
*****************************************************
The discussion list for http://webstandardsgroup.org/
*****************************************************
