Invisible characters causing space above form

ambition.creative 06 Jun, 2009
Hi,

I'm using ChromoForms as a Joomla module on my site. I've noticed a extra character height above my form when displayed in certain browsers. After spending quite some time trying to tweak the css, I decided to take a look at the source inside a text editor with invisibles switched on. It appears that two stray upside-down questions marks are causing the problem. See attached screenshot. The offending characters are in red.

[attachment=0]Picture 1.png[/attachment]

Does anyone have any idea why this is happening? Is it a bug?

Really hope someone can help.

Thanks,
Gary
GreyHead 06 Jun, 2009
Hi Gary,

Very odd - I can see the artefacts and can pin down when they are created - but neither seems to be coming from the ChronoForms code.

The first ? occurs before the mod_chronocontact.php file is loaded and the second when the mod_chronocontact/helper.php file is loaded. But there are no stray fields in either file.

Ah - I've just looked at mod_chronocontact.php in a hex editor and it looks as though there are some codes in the first three bytes EF BB BF - and the same for the helper.php file. Remove these and the artefacts disappear.

I think that these may be character set bytes that Max's editor added to show the files were UTF-8 (see Wikipedia Byte-Order-Mark).

Bob
This topic is locked and no more replies can be posted.