Page 1 of 1

header Footer sizes

Posted: Wed Apr 13, 2005 10:31 am
by spida
Although I have my header and footwer in the provided text files I cant them to be 100% of the screensize.

Theres always a margin around even with this margin code.
<body leftmargin="0" rightmargin="0" topmargin="0">

But if I put this code in the top of gbook.php the sizes correct themselves but I get a load of errors.

Warning: Cannot modify header information - headers already sent by (output started at /home/sites/site.co.uk/public_html/Gbook/gbook.php:2) in /home/sites/site.co.uk/public_html/Gbook/gbook.php on line 601

and so on tilll line 604.

I tried deleting these lines and the frontend looks fine. However while testing it, it just throws more errors.
Anyway to fix this at all please.

Many thanks in advance

Posted: Wed Apr 13, 2005 10:45 am
by Klemen
Hi,

Deleting lines of code is usually not a good idea unless you know what you are deleting :D

Try this:

1. Open gbook.php in a plain text editor, like Notepad or Wordpad
2. use the search function to find <body>
3. Change that to:

Code: Select all

<body leftmargin=\"0\" rightmargin=\"0\" topmargin=\"0\">
Note that quotes are escaped with a \
Wrong: "
Correct: \"

4. Save, upload, test!

Regards

Posted: Wed Apr 13, 2005 11:04 am
by spida
Super
many many Thanks.