0

Check out http://cancerpreventionnetwork.org/participants.shtml and you can see that the header is dropped down on this page. If you click on any other page, the header is not dropped like that. I have tried everything and I can't figure out what is causing this.

Catfish
  • 18,876
  • 54
  • 209
  • 353

2 Answers2

1

seems to me that it's the classic UTF8 BOM encoding problem

you need to check all your source files and make sure that they are not encoded using the BOM.

there are many ways to remove it. I use notepad++ but there might be an automated tool or some shell code to remove the BOM for multiple files

and also.. if you're including files (templates) make sure that they don't have white spaces or new lines after the ?>

Good Luck

pleasedontbelong
  • 19,542
  • 12
  • 53
  • 77
  • I just looked at the page using firebug and I didn't see anything that says BOM. Where do you see that? – Catfish Jul 13 '11 at 13:56
  • there's no easy way to do that =P but check this question http://stackoverflow.com/questions/1068650/using-awk-to-remove-the-byte-order-mark – pleasedontbelong Jul 13 '11 at 14:02
1

When I check the page in Chrome with inspect element, I see an extra text node. I can't see it in the source, but maybe you can?

enter image description here

Jason Gennaro
  • 34,535
  • 8
  • 65
  • 86
  • I saw that too, but I can't figure out where it's coming from. If you check the `GET participants.shtml` response in the net panel in firebug I don't even see it there. – Catfish Jul 13 '11 at 14:10
  • It could be some space in one of your `includes`. See if you can delete any extra spacing before or after the code in the `includes` – Jason Gennaro Jul 13 '11 at 14:13
  • @Catfish The text nodes are inserted because you have the Divs on a newline. Try putting your `
    – Briguy37 Jul 13 '11 at 14:19
  • Seemed to be a hidden character that I couldn't see using gedit in linux, but I could see it using ned in linux. – Catfish Jul 13 '11 at 15:24