471,610 Members | 1,351 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,610 software developers and data experts.

A blank line at the top of my page

Hello,

I am modifying an .asp file and I noticed that the top line on the screen is
blank. I would like to remove this line, and push everything up to the top
of the screen, but I don't know what is causing it to appear. Does any one
have any ideas of what to look for?

The code has <table><tr><tdtags. There are no <formand no <p>. I hope
I have given you enough information, and thank you for your help.

Joy
Nov 21 '07 #1
7 5744
On 11/20/07 06:39 pm, Joy M wrote:
>
I am modifying an .asp file and I noticed that the top line on the screen is
blank. I would like to remove this line, and push everything up to the top
of the screen, but I don't know what is causing it to appear. Does any one
have any ideas of what to look for?
No.
An URL to a test case would be most helpful.
The code has <table><tr><tdtags. There are no <formand no <p>. I hope
I have given you enough information, and thank you for your help.
No, you haven't, not even close.
You are welcome.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Nov 21 '07 #2
Joy M wrote:
I am modifying an .asp file and I noticed that the top line on the screen is
blank. I would like to remove this line, and push everything up to the top
of the screen, but I don't know what is causing it to appear. Does any one
have any ideas of what to look for?

The code has <table><tr><tdtags. There are no <formand no <p>. I hope
I have given you enough information, and thank you for your help.
Most browsers leave a space that looks like a blank line at the top of
each page, akin to the blank space at the top of most printed pages.

You can remove it, or reduce it, but you'll have to use CSS for this.
See newsgroup comp.infosystems.www.authoring.stylesheets (CSS stands for
"Cascading Style Sheets")

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Nov 21 '07 #3
Hi,

Thanks for your messages. I am working with 24 .asp programs that form a
website and there is only one program with the blank line at the top, so I
think something must be causing it to happen.

I was just wondering if there was any kind of JavaScript/VBScript/ASP or
HTML code that could produce a blank line. One thing I just realized I
could do is copy the program and then remove some code and gradually add it
back in, maybe then I could narrow down the code to find out what is causing
the blank line.

Anyone have any other suggestions?

Joy
Nov 22 '07 #4
rf

"Joy M" <ab***@ns.sympatico.cawrote in message
news:47**********************@news.aliant.net...
Hi,

Thanks for your messages. I am working with 24 .asp programs that form a
website and there is only one program with the blank line at the top, so I
think something must be causing it to happen.

I was just wondering if there was any kind of JavaScript/VBScript/ASP or
HTML code that could produce a blank line. One thing I just realized I
could do is copy the program and then remove some code and gradually add
it back in, maybe then I could narrow down the code to find out what is
causing the blank line.

Anyone have any other suggestions?
Show us a URL.

--
Richard.
Nov 22 '07 #5
I was just wondering if there was any kind of JavaScript/VBScript/ASP or
HTML code that could produce a blank line. One thing I just realized I
could do is copy the program and then remove some code and gradually add it
back in, maybe then I could narrow down the code to find out what is causing
the blank line.
3 Ignore the numbers until you find out what they are for!
5
If it were me (and it frequently is with my CGI scripts) I would *add* a
4 line of code to output something obvious, perhaps a "z" or a &dagger;
right at the start of the program (or after the HTTP header, if you
2 generate this). Make sure your addition is at the top of the page.
Then move the new line of code down through your program in steps until
the new z/dagger appears after the space. Now move the new line upwards
in smaller steps until the gap re-appears. Repeat using ever smaller
steps until you have isolated the precise line of your code that is
causing the problem.

1 If you make the first step in the process half the size of your code,
and each successive step half the size of the previous one, this is
known as a "binary search" and will find the problem in the hugest
program within 12 steps. (Someone now steps in and says their program
contains more than 4096 lines).

The beauty of adding just one line is that your program remains intact;
you don't risk deleting a bunch of stuff then accidentally pressing
"save" rather than "save as". It also means that your process continues
to work if this one program is part of a suite executed in sequence.

To give you an idea of how this works, I've put numbers at the beginning
of lines in this post, as if this were the program, to demonstrate the
steps. You find the first blank line in 5 steps!

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk
Nov 22 '07 #6
Gazing into my crystal ball I observed "Joy M" <ab***@ns.sympatico.ca>
writing in news:47**********************@news.aliant.net:
Hello,

I am modifying an .asp file and I noticed that the top line on the
screen is blank. I would like to remove this line, and push
everything up to the top of the screen, but I don't know what is
causing it to appear. Does any one have any ideas of what to look
for?

The code has <table><tr><tdtags. There are no <formand no <p>. I
hope I have given you enough information, and thank you for your help.

Joy

Look for erant response.write , then look at the generated HTML (view
source). Validate.
--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Nov 22 '07 #7
Hi again,

I solved my problem by using Steve's technique of adding markers to zero in
on errant code.
Great tip, one that I will remember and use again. Thank you.

In the ASP part of the program (not the HTML) I found
%>
<br>
<%

And the <brwas the line that I deleted, and that removed the blank line on
the screen.
So it was a fairly simple solution in the end.

Thank you, again, to everyone who replied.

Joy
Nov 23 '07 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by dan glenn | last post: by
8 posts views Thread by dmcconkey | last post: by
2 posts views Thread by Danny | last post: by
2 posts views Thread by Andy Fish | last post: by
6 posts views Thread by Melissa | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.