SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    John 8:24 JREAM's Avatar
    Join Date
    Sep 2007
    Location
    Florida
    Posts
    1,508
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Centering Works but then doesnt

    Hey Guys, I'm a little stuck here,

    In FF it centers, but in IE the centering goes off!
    jream.com/1_temp_d/catalog/

    I know OsCommerce is not XHTML valid.

    #fit {
    margin: 0 auto;
    width: 701px;
    }


    Its all a bunch of tables in OsCommerce jammed into a #fit DIV, there are no unclosed table tags in my validation, just a bunch of silly attributes.

    If you have any idea why IE does this I well appreciate it

  2. #2
    Design Your Site Team bronze trophy Erik J's Avatar
    Join Date
    May 2007
    Location
    Countryside, Sweden
    Posts
    3,407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE goes into quirks mode because of the incomplete doctype, and auto centre doesn't work.

    Either you can add text-align:center to the body that works in quirks mode, or better complete the doctype.
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
     "http://www.w3.org/TR/html4/loose.dtd">
    Happy ADD/ADHD with Asperger's


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
  •