Results 1 to 4 of 4

Thread: Extra White space on a webpage being created

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2004
    Posts
    51

    Angry Extra White space on a webpage being created

    Hello,

    I am having a problem with a PHP script that I am wrting. The script basically reads values from a text file and then displays these values in a table. For some reason, everytime the table is created, there is a huge gap of white space above the table. The more rows the table has, the bigger the gap of white space is. Can someone tell me why this is happening and how I can stop it?

    Thanks

    Dave

  2. #2
    Fanatic Member McCain's Avatar
    Join Date
    Jan 2002
    Location
    Sweden/Denmark
    Posts
    802

    Re: Extra White space on a webpage being created

    No, not really. Not without seeing any code...
    Simplify the problem as much as you can and then post the code here
    Never argue with fools, they will only drag you down to their level, and beat you with experience.

    Q: How do you tell an experienced hacker from a novice?
    A: The latter thinks there's 1000 bytes in a kilobyte, while the former is sure there's 1024 meters in a kilometer

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Extra White space on a webpage being created

    Most likely because before you're saving or submitting the page, you're replacing newlines with <BR>s?

  4. #4

    Thread Starter
    Member
    Join Date
    Oct 2004
    Posts
    51

    Re: Extra White space on a webpage being created

    Hi Guys,

    Thanks for your replies. I took a quick look through my code and just like you said Mendhak, there was a <br> that I had left over from testing before I started putting the data into table form. I removed the <BR> and now everything is working great.

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width