Dave Goodchild wrote: > To centre in the browser there are two main ways, either use > the IE heck (text-align: center then text-align: left etc) > but I prefer using relative positioning and negative margins > - example: > > #wrapper { > width: 740px; > position: relative; > left: 50%; > margin-left: -370px; > } > > which is not a hack.
Not a hack, but you're losing content on browser window widths narrower than 740px. What you call an IE hack above, is only needed for IE5. Other browsers, including IE6, understand margin:auto;. Given a choice between a "hack" and inaccessibility of content, I'll choose the hack anytime. -- Els http://locusmeus.com/ http://locusoptimus.com/ ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/