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 7 of 7
  1. #1
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts

    HELP! - I get space on top when I try to include

    when I try to include footer.phtml and header.phtml I get a space on top in the index page:
    http://neostar.110mb.com/index.phtml
    all the files are in the same directory.
    please help.

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,387
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    Not sure if the part in red is the problem or not:

    <table cellpadding="0" cellspacing="0" width="705" heght="100%">

    height

  • #3
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts
    I fixed all the errors but it still have a space n top

  • #4
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,387
    Thanks
    8
    Thanked 1,077 Times in 1,068 Posts
    Holy Cow!! ... this took me forever to find.

    I guess it's because I don't look at this spot ...

    <html>
    <head>

    Get rid of the stuff marked in red at the very top of your HTML code.
    Last edited by mlseim; 10-30-2007 at 10:04 PM.

  • #5
    Regular Coder
    Join Date
    Feb 2007
    Location
    Canada
    Posts
    924
    Thanks
    10
    Thanked 56 Times in 55 Posts
    Those are 'BOM' markers. Byte Order Markers.
    Using a good Text Editor, save the file as 'utf-8 without bom' to remove those items.

  • #6
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts
    and where I can find a "good" editor?

  • #7
    Regular Coder
    Join Date
    Oct 2007
    Posts
    277
    Thanks
    2
    Thanked 4 Times in 4 Posts
    thanks for both of you I did a little search and found a good editor that automaticly deletes BOM so thanks!


  •  

    Posting Permissions

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