I want users with a 1280×1024 display to see my webpage centered on their screen (not left justified). Can I do that and still allow users with an 800X600 display to see it left justified?
@HaganeNoKokoroSep 09.2005 — #Put all your content inside something like this:<div style="text-align:center"> <div style="width:780px; height:600px; margin:auto; text-align:left;"> <!-- Your content Here --> </div> </div>The margin:auto part centers the 780 x 600 div in good browsers (and IE6 too) while the text-align:center part centers it in bad browsers (IE5). It will only be centered if the window is bigger than 800px wide.
Since the width of the element containing all the content is 780, it will fit inside an 800 x 600 window, and appear left-justified.