White Space

M

mcp6453

What is the most efficient way to add white space to the bottom of an
HTML page without using Style Sheets or without 50 <br> tags? I want to
locate a counter two or three screens below the last line in the page.
Unfortunately, I don't know how to make the counter invisible.
 
A

Andrew Urquhart

mcp6453 said:
What is the most efficient way to add white space to the bottom of an
HTML page without using Style Sheets or without 50 <br> tags? I want
to locate a counter two or three screens below the last line in the
page. Unfortunately, I don't know how to make the counter invisible.

Too late, April Fools Day was a few days ago!
 
W

Weyoun the gowd damn Dominion Vorta who certainly

mcp6453 said:
What is the most efficient way to add white space to the bottom of an
HTML page without using Style Sheets or without 50 <br> tags? I want to
locate a counter two or three screens below the last line in the page.
Unfortunately, I don't know how to make the counter invisible.

There are invisible counters out there.

The most efficient way would be through a GIF file.

50 <br /> tags takes up 400 bytes of data.

This GIF file, 1000 pixels long, 1 pixel wide, white, is 63 bytes in size.
www.dancingborg.co.uk/white.gif


Even allowing for:

<div align="right">
<img src="images/white.gif" />
</div>

That's 59 bytes of data. In total that's 122 bytes of data. That's 327%
more efficient than doing 50 <br />s.
 
O

Owen Jacobson

I guess I miss the joke. Any suggestions?
Yes.

"I want to do something but I refuse to use the tool designed specifically
for this task" (CSS)

"I want to do something but I refuse to use the tool designed specifically
for this task" (read the webserver log files, or use a tool like analog to
read them for you)
 
R

Rob McAninch

mscir said:
mcp6453 wrote: [snip]

I have yet to see a valid reason for doing such a thing. It is
akin to adding 6 inches to the bottom of a printed book page -
except in a printed book, that space might be used for notes.

There's no point to this. A typical user will see that the page
scrolls 'beyond the content' and go to see what is there.
Google has lots of hits for 'invisible hit counter'.

Yep, many can be made invisible or you can cheat and make the
tracking image very small. Or you can get some paid hosting with
server logs to analyze and forget the hit counter.
 
M

mcp6453

Weyoun said:
There are invisible counters out there.

The most efficient way would be through a GIF file.

50 <br /> tags takes up 400 bytes of data.

This GIF file, 1000 pixels long, 1 pixel wide, white, is 63 bytes in size.
www.dancingborg.co.uk/white.gif

Even allowing for:

<div align="right">
<img src="images/white.gif" />
</div>

That's 59 bytes of data. In total that's 122 bytes of data. That's 327%
more efficient than doing 50 <br />s.


Finally, a reasonable answer. Thanks.
 
D

DT

, Once upon a time in a land far away mcp6453 was alleged to have said:
Finally, a reasonable answer. Thanks.

Of course, a 1x1 pixel gif displayed at a height of 1000 would be even
smaller......
 
T

Toby A Inkster

Weyoun said:
50 <br /> tags takes up 400 bytes of data.

50 <br> tags (assuming HTML rather than XHTML) takes 200 bytes -- not 400.

See the directory listing here:

http://www.goddamn.co.uk/tobyink/scratch/

Look at the file "50br.html". This is 201 bytes in size (the extra 1 byte
is for the line break at the end).
This GIF file, 1000 pixels long, 1 pixel wide, white, is 63 bytes in size.
www.dancingborg.co.uk/white.gif

Even allowing for:

<div align="right">
<img src="images/white.gif" />
</div>

That's 59 bytes of data. In total that's 122 bytes of data. That's 327%
more efficient than doing 50 <br />s.

Total crap. You're completely ignoring the extra HTTP request for an
external image file, which would add on about an extra quarter of a KB,
making the line breaks far more efficient.

Of course, even more efficient would be this:

<p style="height:99em">&nbsp;</p>

Which is 33 bytes. However, the OP seems to have some kind of CSS allergy.
 
W

Weyoun the gowd damn Dominion Vorta who certainly

DT said:
Of course, a 1x1 pixel gif displayed at a height of 1000 would be even
smaller......

"Oh Dear," says God "I hadn't thought of that; and prompty vanishes in a
puff of logic.
 
W

Weyoun the gowd damn Dominion Vorta who certainly

Toby said:
Weyoun the gowd damn Dominion Vorta who certainly didn't dance wrote:




50 <br> tags (assuming HTML rather than XHTML) takes 200 bytes -- not 400.

See the directory listing here:

http://www.goddamn.co.uk/tobyink/scratch/

Look at the file "50br.html". This is 201 bytes in size (the extra 1 byte
is for the line break at the end).

I said 50 "<br />" tags not 50 "<br>" tags. I believe tags that don't
have a closing tag: br, hr, img etc, are supposed to now close themselves.

Total crap. You're completely ignoring the extra HTTP request for an
external image file, which would add on about an extra quarter of a KB,
making the line breaks far more efficient.

thanks. youc ould jsut say "you're wrong" instead of saying "total crap"
but thank you none the less.
 
T

Toby A Inkster

Weyoun said:
I believe tags that don't
have a closing tag: br, hr, img etc, are supposed to now close themselves.

In XHTML (and in XML generally) yes, but not in HTML.
 
M

mcp6453

DT said:
Of course, a 1x1 pixel gif displayed at a height of 1000 would be even
smaller......


Where can I steal such a file, since I don't know how to make one?
 
N

Neal

Where can I steal such a file, since I don't know how to make one?


Do you have Microsoft Paint or something else like it? You can make a 1x1
GIF rather easily if you do.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top