Forum Moderators: not2easy

Message Too Old, No Replies

Firefox and Page Centering

How to center a page in Firefox with CSS!

         

jimh009

7:24 am on Mar 9, 2005 (gmt 0)

10+ Year Member



Hi,

I usually design my sites in IE and then test later in Firefox. Big mistake! I've fixed all those little pesky errors in CSS that can develop between these two browsers (such as the hr thing), but have yet to figure out what must be an incredibly easy solution to this problem.

The layout I'm designing will be page centered. I use Dreamweaver, and for simplicity I just align the 4 primary tables to "center" when I set up the layout (I don't put it in CSS). This works just fine in IE. Yet, when I view the site in Firefox, the site is lining up along the left side of the screen and isn't centering.

I'm using CSS extensively on this site and suspect that something may not be right in my CSS that IE is ignoring but which Firefox is picking up. But I have absolutley no idea what that may be. :(

Any suggestion on how to center a page in Firefox when it is centering just fine in IE?

Thanks.

Jim

benihana

9:18 am on Mar 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



in css:

#mytable {
margin:0 auto;
}

where mytable is the id of your outermost table.

Ben