page not displaying properly in IE7

Discussion in 'CSS' started by DaFiz, Jun 3, 2008.

  1. #1
    Hi Guys,

    I am having trouble working out why in IE7 the page is not displayed properly. It looks fine in FF. This particular page is the only one that uses its own header and footer code, but still uses the same css as all the other pages.

    http://www.facebookbay.com/support/index.php

    Can somebody please help?

    Cheers,
    DaFiz
     
    DaFiz, Jun 3, 2008 IP
  2. urbn

    urbn Peon

    Messages:
    184
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The easist way I can see is cut your form fields in 1/2 for the support fields. They are pushing the image too far over causing the other parts of the page to move with it.

    Meaning change all your files like so:
    <input type="text" name="name" style="width:250px" value="">
    to:
    <input type="text" name="name" style="width:150px" value="">
     
    urbn, Jun 3, 2008 IP
  3. DaFiz

    DaFiz Active Member

    Messages:
    38
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #3
    would this cause the page to not centre?

    The picture is definitely sitting over the edge, but it doesn't look like the text input fields are causing it.
     
    DaFiz, Jun 3, 2008 IP
  4. deathshadow

    deathshadow Acclaimed Member

    Messages:
    9,732
    Likes Received:
    1,999
    Best Answers:
    253
    Trophy Points:
    515
    #4
    No doctype so you are dealing with IE in quirks mode, invalid nesting of markup (FORM between TABLE and TR for example), presentational markup and lack of proper indenting making it nigh impossible to find any actual code errors...

    I'm amazed it renders correctly in ANY browser... if it does so, you are relying on the error correction and NOT proper rendering behavior.
     
    deathshadow, Jun 4, 2008 IP
  5. DaFiz

    DaFiz Active Member

    Messages:
    38
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #5
    Thank you for your very helpful post. I actually realised their was no doctype last night on the drive home from work, and after seeing your post this morning and then applying the doctype to this page it is working perfectly now.

    As for the invalid nesting I will take a look now.

    Thanks again for your help deathshadow, much appreciated. I will see if I am able to work out how to give you some rep :)

    cheers,
    DaFiz
     
    DaFiz, Jun 4, 2008 IP
  6. DaFiz

    DaFiz Active Member

    Messages:
    38
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #6
    I have now indented the code as best I can, and the code looks good, except that <FORM> and <TABLE> nesting you mentioned. Well spotted. I have now swapped them around the right way.

    Is there any programs you know of that will automatically fix indenting on files that weren't previously indented properly? To save my indenting manually someone elses poorly indented code.

    cheers,
    DaFiz
     
    DaFiz, Jun 4, 2008 IP