6
I’m creating a page with some includes (top and footer) and where I put these includes a huge space appears with a strange code (
) (the code does not appear on the page, only on the browser element inspecter):
See in the image above what appears between the <main>
and the <footer>
, for example. The same thing happens everywhere I put the include.
I’m doing it this way:
<body>
<?php
include 'aa_topo.php';
?>
<main>
<!-- conteúdo HTML -->
</main>
<?php
include 'aa_footer.php';
?>
</body>
</html>
In the source code of the page everything is normal, nothing strange appears, but where have these includes is creating a 50px vertical spacing between one element and another (between the body
and main
and between the main
and the footer
).
If I put the codes includes right on the page, everything is normal.
What’s causing this and how I can fix it?
I’m using a temporary server with PHP 5.2.17 and Dreamweaver CC 2015.
show aa_footer.php as well
– Victor Eyer
cara has a similar question here already https://answall.com/questions/92639/65279-aparece-esse-erro-entre-o-body-e-d%C3%A1-diff%C3%A7a-de-espa%C3%A7o
– N. Dias
Uncle sam, Voce must have copied some code in Unicode and pasted on your page.
– user60252
@Grandpa Leocaracciolo, no. I created in Dreamweaver same
– Sam
Boy there’s nothing GOOD in this thing, only BAD even kkkk
– user60252
This happened to me several times, I pasted directly on Frontpage and appeared these strange things
– user60252
+1 for the joke. Download Notepad++, go to formatting and select (UTF8 NO GOOD)
– Victor Eyer
@VME, this is how I do when I face the problem.
– user60252