the normal one:
VS
the odd one:
when i look at the code side by side, its almost identical, the only thing that would make them give that weird gap should be the CSS but they're using the same sheet.
ideas?
EDIT:
I checked and made minute changes to the code, look again at the source.
Both are EXACTLY the same. wtf is with this gap.
EDIT: there's a pixel wide character just before the xml deceleration, how do i stop it form occurring?
The php page generates a "." before the doctype which explain the extra space
the html page
the php page
delete any code above the doctype in the php page
You have an extra bit of white space at the top of the PHP file's source code (before the xml declaration).
There's a
on the php one at the top of the page explaining the gap IMHO
Your PHP output has a double byte-order-mark at the head.
Inspecting your code with Firebug, I see this as the first line
Now, all those funky characters there are just ISO-8859-1 decodings of the UTF-8 BOM (0xEF 0xBB 0xBF).
These are possibly added by your IDE/editor into the head of the PHP files themselves. Check your preferences and see what encoding is being used. If it's something like "UTF-8 + BOM" then switch it to just "UTF-8" and that should fix it.
If you're including any files at the top of the PHP file it could be that you actually have whitespace or a period AFTER the ending ?> in the included file
This can be solved by never using ?> in pure PHP files. It's ok to leave it open like this: