Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Center Positioning issues between FF and IE

    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...

  • #2
    New Coder bigtiger's Avatar
    Join Date
    Oct 2005
    Posts
    98
    Thanks
    0
    Thanked 0 Times in 0 Posts


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •