Forum Moderators: coopster
Here's the code:
<?php<!--some code--!>
echo <<<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<TITLE>My Title</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<LINK REV="made" href="me@foo-widgets.com">
<META HTTP-EQUIV="Content-Language" CONTENT="EN">
<META NAME="author" CONTENT="Me">
<META NAME="copyright" CONTENT="(c) My Company">
<META NAME="robots" CONTENT="ALL">
<style>
<!--
.footer { display:inline!important; }
-->
</style>
</head>
<LINK REL="stylesheet" HREF="my_style_sheet.css">
<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0">
<--my content--/>
</body>
</html>EOF;
<!--some code--!>
?>
Now the problem is that the <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> does not seem to be valid. If I run the script, all the margin's become default to 2 (when viewing with a browser), but the code remains the same when I view the source of the file.
The same code works well on an HTML page, but when its parsed in the PHP page, it fails to work.
Am I doing something wrong? Is it meant to be this way?
Any help would be most appreciated,
Sid
One thing I can say is that this is not a PHP issue. Those settings are interpreted client side, not server side. PHP has nothing whatsoever to do with the client side. Do a view source, save the code, change the extension to html and you will have the same problem.
Or include body {margin:0;} in your page styles and just code <body> in your html.
Another point, I don't know if it's necessary, but I always put link statements before the </head> tag.
Do a view source, save the code, change the extension to html and you will have the same problem.
You could try replacing <body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0"> with <body style="margin:0;">
Sid