Advanced Search

Results 1 to 9 of 9

Thread: Firefox not centering box but IE is fine

  1. #1
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Firefox not centering box but IE is fine

    Hi,
    For my site: http://www.ttkn.com/site/ it appears fine in ie6, but in firefox the center box is appearing over the right hand column and is not centering.
    Also the header under the search box is slightly squashed.

    I tried to clean up the html as in w3c , and have goto http://www.ttkn.com/site/index5.htm

    Can anyone help me out please.

    Thanks

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    I didn't look at your CSS but your alignment issue in FF is probably due to not having an "auto" margin.

    Assuming that you have a div that encloses EVERYTHING (lookslike PageSurround on your page), add this to it's CSS:

    Code:
    margin:0 auto;

  3. #3
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    Also, I'm getting the following in IE7...

    Attachment 1657


    Unfortunately, I can't help you out right now to fix it. But just wanted to make you aware of them.

  4. #4
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,
    Thanks for your reply.
    I have: margin : 0 auto 0 auto; in the pagesurround, but I changed it with margin:0 auto; and the page appears same.

  5. #5
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    It's margin:0 auto;
    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  6. #6
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thanks, have updated that.

  7. #7
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by tech_support View Post
    It's margin:0 auto;
    0 auto 0 auto is the same thing just declared differently

    0 top margin
    auto right margin
    0 bottom margin
    auto left margin...

    0 top/bottom margin
    auto left/right margin


    they are one and the same, so that shouldn't be the cause of the problem.

  8. #8
    Join Date
    Mar 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    any suggestions what I should do?

  9. #9
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    try adding text-align:center to the body tag

Bookmarks

Posting Permissions

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