On Mon, 1 Oct 2007 18:39:57 -0400, Ken Weise wrote: > Hi, > > Working on a Perl script that puts out a page. I have the script working, > except in IE > my footer isn't centered. Seems to work in Firefox, so I must be missing > something > stupid, but haven't figured this out in a couple of hours. Anyway, here's the > page: > > http://www.econocaribe.com/cgi-bin/agt1.pl >
Well, the footer is not centered in other browsers, either! That's because it is 920 pixels wide, absolutely positioned, inside a 990 pixel wide DIV called "#body". The "auto" margins won't affect an absolutely positioned element. What you are missing is a "left: 0;" declaration on that footer. Or, if you retain the present widths, use "left: 35px;" to center it. You also need to establish the "#body" DIV as the containing block for this. Adding "position: relative;" to the rule for the "#body" should do the trick for all browsers ... even IE. :) Cordially, David -- ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
