Hey guys,
I have deduced it may have something to do with the opening DOCTYPE at the top of the HTML code.
Normally I use the below and the margin would appear, but remain empty.
HTML Code:
<?php include_once $_SERVER['DOCUMENT_ROOT'] .
'/includes/helpers.inc.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
But if I position the brackets so as to separate different portions of the DOCTYPE, as below, then the following appears as unformatted text, fitting very snugly in that margin:-
HTML Code:
<"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
HTML Code:
<?php include_once $_SERVER['DOCUMENT_ROOT'] .
'/includes/helpers.inc.php'; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
<"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
And thinking about it, sometimes PHP error messages appear in the margin (ones that are unanticipated and aren't displayed using the 'echo $error' command), and sometimes exceed the 20px margin if it is a particularly lengthy one explaining several errors, pushing the margin down and making it as large as it needs to be so as to accommodate the message.
Does that give any clues as to how to cancel out the margin?
Thanks guys,
Andy
Bookmarks