CSS issues with Firefox - alignment

  • gmoran
  • Born
  • Born
  • gmoran
  • Posts: 1

Post 3+ Months Ago

This sounds somewhat similar to my problem.

I've got two wrapper div tags around a table that's supposed to center the middle cell of essentially 3 row, 3 column table in the browser window. Any ideas if this solution will fix this?

In IE it looks fine and re-centers when IE is scaled down. In firefox, it pushes the center cell to the right.

See the page here at low-res: http://www.feystruck.ca/new.html


Code: [ Select ]
#horizon {
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 0px;
    width: 100%;
    margin-top: -464px;
    text-align: center;
    min-width: 100%;
}
#wrapper {
    position: relative;
    text-align: left;
    width: 100%;
    height: 749px;
    margin: 0px auto;
    }
-->
  1. #horizon {
  2.     background-color: transparent;
  3.     position: absolute;
  4.     top: 50%;
  5.     left: 0px;
  6.     width: 100%;
  7.     margin-top: -464px;
  8.     text-align: center;
  9.     min-width: 100%;
  10. }
  11. #wrapper {
  12.     position: relative;
  13.     text-align: left;
  14.     width: 100%;
  15.     height: 749px;
  16.     margin: 0px auto;
  17.     }
  18. -->
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

In the center div, try putting this in the CSS:
Code: [ Select ]
margin-left: auto;
margin-right: auto;
  1. margin-left: auto;
  2. margin-right: auto;

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 74 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.