Hello list, I just subscribed here and enjoyed reading the posts a lot! Now i want to put my problem in your capable hands:
I made a test page where the content is wrapped in a #wrapper. This is centered using the "fixed width, auto margins" technique. Now, to let that work in IE5 and IE5.X, the CB has to be set to text-align: center. In this case the CB is the body element, and because i have my nav outside the #wrapper, setting text-align: center on the body element lets IE centre the nav, while i want it flush to the left. Removing text-align: center on the body let's IE6 behave normal but causes issues with IE5. [1] To resolve this i came up with 3 things: putting an #outerwrapper around #wrapper with text-align: center [2]. As i'm told, this does the trick in IE5. But because i wanted to avoid nested divs, i tried using a hack to feed the text-align: centre on the body element to IE5 only. [3] & [4]. But these don't work as i'm told. Am i going wrong around this, or is method [1] the best? CSS embedded. Don't mind the header, the logo is just some place filling at the moment. [1] http://www.dzinelabs.com/test/template_mogul.htm [2] http://www.dzinelabs.com/test/copy_of_template_mogul.htm [3] http://www.dzinelabs.com/test/copy_of_copy_of_template_mogul.htm [4] http://www.dzinelabs.com/test/copy_of_copy_of_copy_of_template_mogul.htm -- Best regards, Luc ________________________ http://www.dzinelabs.com Powered by The Bat! version 1.63 Beta/7 with Windows 2000 (build 2195), version 5.0 Service Pack 4 and using the best browser: Opera. "If you want your dreams to come true, don't sleep." -Yiddish Proverb. ***************************************************** The discussion list for http://webstandardsgroup.org/ *****************************************************
