SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Oct 2006
    Location
    Syracuse, NY
    Posts
    118
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Possible Doctype Issue

    Hey everyone,

    I'm working on a site for a client and I started getting strange errors in Firefox and not in IE. If you could please view the following page in both browsers:
    http://nexlevelnet.com/projects/jwbu...investment.php

    In firefox, there is a strange few characters in the top left corner that push the layout around. If anyone has any suggestions, please let me know!

    Thanks a lot

  2. #2
    SitePoint Guru Rob_D's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The layout is broken in FF Mac too...
    It has yet to be proven that intelligence has any survival value.
    Arthur C. Clarke

  3. #3
    SitePoint Guru Rob_D's Avatar
    Join Date
    Oct 2006
    Location
    UK
    Posts
    882
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    FF seems to be picking up some weird characters at the very beginning of the document.

    Try putting the cusor in your code immediately after the "<" here:
    HTML Code:
    <!DOCTYPE
    and back space several times, type "<", save and then see if that fixes it.

    Also you should use UTF-8 encoding according to DW.
    It has yet to be proven that intelligence has any survival value.
    Arthur C. Clarke

  4. #4
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It looks as if you've saved the source file as UTF-8 with a BOM (byte order mark). This will cause problems in some browsers and the BOM is completely unnecessary for UTF-8. Try re-saving it without the BOM.
    Birnam wood is come to Dunsinane


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
  •