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 3 of 3
  1. #1
    New Coder
    Join Date
    Dec 2010
    Posts
    24
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Question Tables Not Centering

    Hello all, I have these two tables (top nav bar and main body), both 1000px wide, but top nav bar is exactly 1 pixel to the left of the main body. What is causing these two tables not to align right and display off-center in Firefox? Here is the link to the page I am working on:

    http://www.unitedfleetparts.com/

    and my two external files:

    http://www.unitedfleetparts.com/javascripts/general.js
    http://www.unitedfleetparts.com/css/general.css
    Last edited by zaltek; 12-20-2010 at 11:44 PM.

  • #2
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    If you go through the widths of the images within that top table, the width totals 1001px. Sort that and the tables line up.

  • Users who have thanked SB65 for this post:

    zaltek (12-22-2010)

  • #3
    New Coder
    Join Date
    Dec 2010
    Posts
    24
    Thanks
    7
    Thanked 0 Times in 0 Posts

    Thumbs up

    The 1 extra pixel was a transparent spacer .gif that Adobe Fireworks automatically put in the nav bar, I hadn't even noticed that with that spacer the top table was actually 1001px like you said. Thanks so much for pointing that out.


  •  

    Posting Permissions

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