Author Topic: White space on the top of the page  (Read 1772 times)

0 Members and 1 Guest are viewing this topic.

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: White space on the top of the page
« Reply #5 on: June 09, 2008, 11:13:51 AM »
I think at least PART of your problem is that a web URL goes to A page - and only one.  With multiple body tags, your scripts (especially with document.writes) don't know which body tag to act on so they are hitting both of them.  This doubles the output created and probably does other evil things as well.

That would be where I would start.

David

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: White space on the top of the page
« Reply #4 on: June 08, 2008, 06:55:57 PM »
Sorry  - good questions though.

Heres what you need to know, though this is more about HTML than PHP.

Each HTML page consists of a certain number of basic tags.  Heres a simple page:

Code: [Select]
<html> 
<head>
Some informational stuff here - header tags, etc. - not the header you see on the page, but service stuff for web browsers, etc.
</head>
<body>
The "Page body" - here is where your header, footer, side bars, main page content and everything else goes.  If you see it, it is between a "< body >" tag and a "</ body >" tag.
</body>
</html>

You have lots of code stuck just here and there throughout that page - and some of it adds its own body tag.  Not good.

Too many bodies = page orgy. (ok - evil twist, sorry!)

David

tegralens

  • Newbie
  • *
  • Offline Offline
  • Posts: 37
  • Karma: 0
    • View Profile
Re: White space on the top of the page
« Reply #3 on: June 08, 2008, 10:32:06 AM »
Actually  you have huge whitespace at the top of every page but you see it on the Search page for some reason.  Possibly a difference in CSS or Javascripts on the page.

First - get rid of the page orgy.  You have too many body's on that page.  They are supposed to be rationed out in single sets.. :)

(ie - at least one extra set of <body> </body> tags...)



David
What do you mean by page orgy?  Also what do you mean about ie - at least one extra set of <body> </body> tags...) ? I know very very little of php

David M. Graham

  • Administrator
  • Sr. Member
  • *****
  • Offline Offline
  • Posts: 380
  • Karma: 12
    • View Profile
    • osCommerce University
Re: White space on the top of the page
« Reply #2 on: June 08, 2008, 03:07:38 AM »
Actually  you have huge whitespace at the top of every page but you see it on the Search page for some reason.  Possibly a difference in CSS or Javascripts on the page.

First - get rid of the page orgy.  You have too many body's on that page.  They are supposed to be rationed out in single sets.. :)

(ie - at least one extra set of <body> </body> tags...)



David

tegralens

  • Newbie
  • *
  • Offline Offline
  • Posts: 37
  • Karma: 0
    • View Profile
White space on the top of the page
« Reply #1 on: June 07, 2008, 09:19:03 PM »
David can you help me with something.  On my website I get a large white space on the top after someone uses the search.  Se here If you go on the home page you don't see it.  Can you tell me what the problem might be because I can't figure it out?  Thanks