...

View Full Version : Center Positioning issues between FF and IE



bonzovt
06-01-2007, 02:10 AM
I have some CSS code I am trying to use to center a small table within a DIV. It works great in Firefox, but left aligns in IE. Here is the code for my table:

table.shows
{
width: 70%;
margin-right: auto;
margin-left: auto;
margin: 0 auto;
text-align: center;
padding: 2px;
border: 0px;
}
table.shows td { background: #74B7FE; }
table.shows td.header
{
background: black;
font-style: arial;
font-size: 12pt;
color: white;
}

I did some searching online and got the margin-left and margin-right parts, but that didn't help the problem at all in IE. Any ideas on what would work between both browsers?? Thanks...

bigtiger
06-01-2007, 03:06 AM
This link should be help.

http://www.codingforums.com/showthread.php?p=182254#post182254



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum