header Footer sizes

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
spida

header Footer sizes

Post 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
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
spida

Post by spida »

Super
many many Thanks.
Post Reply