PDA

View Full Version : Setting Margins to 0 in PHP?? (Should be simple)



jtesp
September 22nd, 2003, 04:57 PM
Hello there, I'm a NewBie at PHP so don't laugh! How do I set the margins to 0 in a PHP page?
Here's the code I have:

<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<?php include ("header.php"); ?>
<?php include ("main.php"); ?>
<?php include ("footer.php"); ?>
It DOES work, but in Dreamweaver's Design view, it says:
Untitled Document </head>
The </head> is highlighted in yellow...but when previewing in IE, everything looks fine. I just want to code it correctly :)
Thanks!

ahmed
September 22nd, 2003, 05:04 PM
you need to close the <body> tag :)

jtesp
September 22nd, 2003, 05:07 PM
That's what I figured, but I tried it and it didnt seem to work?! Do I close it before or after the <php> tags? One weird thing is, the Header.php is actually visible in design view...don't know how the heck it's doing that?!

Oh yeah...THANKS!