Thread: Css Centering
View Single Post
Old 11-05-2008, 16:36   #2 (permalink)
seen.to
unusual suspect ™
 
seen.to's Avatar
 
Join Date: Jul 2004
Location: DE, USA
Posts: 2,885
I did contemplate with two containers. The first controls the vertical positioning which I made absolute with a top: 50% then a negative margin-top to bring the actual design into line. The relatively positioned inner container then controls the horizontal centering. Here's the relevant code:
Code:
#outer_wrapper { position: absolute; top: 50%; margin-top: -227px; } #inner_container { position: relative; margin: 0 auto; }

HTH
__________________
  Reply With Quote