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 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question CSS layout in IE6 aligns along the far left but in FF and IE7 it looks fine.

    I am new to CSS, I will readily admit. I have been working in HTML for years, and am trying to give up my frames and tables habits and go to CSS. I used Dreamweaver MX to create a new CSS site, and checked it in FF and IE7, and was happy with the basic layout. Imagine my surprise when the client called to tell me it looked real funny on his older pc. He uses IE6/Windows, and it forces the entire page to the left, so alignment goes out the window.

    I would appreciate either an answer as to why and how to fix, or just how to fix, or anything in between. I have determined, through playing around, if I pad the left margin to 145 pixels, in any browser size 1024x768 or smaller, it spaces correctly, but it makes a scroll bar along the bottom. Not a good fix, IMO.

    Anyway, the site is at http://www.haulstartrailers.com , and the problem seems to follow through all pages the same.


    Thanks for anything you can offer.

    T

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Get rid of this
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    Its putting IE6 intro quirks mode causing margin:auto; not to work.

    You're welcome.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I cannot adequately pass along my thanks. Seriously. I knew it would be a small and obvious problem, but I am amazed at what caused it. Out of curiosity, is it the code, or the location that caused the issue?

    I owe you lunch, lemme know when!!


    Taggert

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Its the code and kind of the location. For the document to be proper it needs to be at the top before the doctype however anything above the doctype in IE6 will put the document into quirks mode. You could move the xml declaration but its not really necessary.
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

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