Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to make HTML show multiple spaces?

0 views
Skip to first unread message

Joe

unread,
Dec 8, 1998, 3:00:00 AM12/8/98
to
I'm using the HTML teletype font (<tt>) to create a text report. The
reason I chose this was to create a simple report with columns
(without having to use tables). The problem is web browsers seem to
strip out any multiple spaces (i.e., more than one space in a row) so
they are not displayed. As a result my columns don't work. Is there an
HTML tag that will override this space-stripping behaviour?

I've also tried inserting tabs to make simple columns but the browsers
don't seem to recognize tabs either.

If all else fails and I'm forced to use tables, can someone direct me
to a good SIMPLE reference on HTML table tabs? I'm very short for time
on this project so I don't have time to pour through a comprehensive
HTML reference.

Thanks for any help you can provide.

Joe McGinn
===================================================
Author of Inside LotusScript
http://www.manning.com/McGinn/459.html
===================================================


EdC

unread,
Dec 8, 1998, 3:00:00 AM12/8/98
to
Joe wrote:
>
> I'm using the HTML teletype font (<tt>) to create a text report. The
> reason I chose this was to create a simple report with columns
> (without having to use tables). The problem is web browsers seem to
> strip out any multiple spaces (i.e., more than one space in a row) so
> they are not displayed. As a result my columns don't work. Is there an
> HTML tag that will override this space-stripping behaviour?
>
> I've also tried inserting tabs to make simple columns but the browsers
> don't seem to recognize tabs either.

Joe,

Check out your friendly neighbohood HTML reference for the <Spacer>
tag. It will insert x number of pixels of white space in a line. You
are already using a fixed font, so if you know the number of spaces you
want (I presume you do) just multiply by the number of horizontal pixels
per character and insert it into the <Spacer> tag. I've also used it
for multi-column keyword lists in a browser.

Your tag might look something like:
<spacer type=horizontal size=x>
x is the number computed per above instructions.

Good luck!

--
EdC CLP
e...@coakley.net
Contract Notes & Domino Application Development
http://www.coakley.net/edc/consulting
Please Note: When replying to mail please delete "NOSPAM." from the
reply address.

M. Lowerr

unread,
Dec 8, 1998, 3:00:00 AM12/8/98
to
The code for a space is &nbsp;
You may have better luck w/ <PRE> </PRE> as it shows text exactly as it appears.

Joe wrote:
> I'm using the HTML teletype font (<tt>) to create a text report. The
> reason I chose this was to create a simple report with columns
> (without having to use tables). The problem is web browsers seem to
> strip out any multiple spaces (i.e., more than one space in a row) so
> they are not displayed. As a result my columns don't work. Is there an
> HTML tag that will override this space-stripping behaviour?
>
> I've also tried inserting tabs to make simple columns but the browsers
> don't seem to recognize tabs either.
>

> If all else fails and I'm forced to use tables, can someone direct me
> to a good SIMPLE reference on HTML table tabs? I'm very short for time
> on this project so I don't have time to pour through a comprehensive
> HTML reference.

--
```
`Light And Shade - http://www.execpc.com/~mlowerr/
`Low Light Design ... http://www.execpc.com/~mlowerr/ll/
`'''''''''''''''''''''''''''''''''''''''''''''''''''''''''

dtu...@panix.com

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to
<PRE>...</PRE> works for us

On Tue, 08 Dec 1998 22:54:14 GMT, mcg...@direct.ca (Joe) wrote:

>I'm using the HTML teletype font (<tt>) to create a text report. The
>reason I chose this was to create a simple report with columns
>(without having to use tables). The problem is web browsers seem to
>strip out any multiple spaces (i.e., more than one space in a row) so
>they are not displayed. As a result my columns don't work. Is there an
>HTML tag that will override this space-stripping behaviour?
>
>I've also tried inserting tabs to make simple columns but the browsers
>don't seem to recognize tabs either.
>
>If all else fails and I'm forced to use tables, can someone direct me
>to a good SIMPLE reference on HTML table tabs? I'm very short for time
>on this project so I don't have time to pour through a comprehensive
>HTML reference.
>

Joe

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to
bic...@concentric.net (Brian Charles Kohn) wrote:

>I hope this helps.

Thanks Brian, it does very much.

Joe

unread,
Dec 9, 1998, 3:00:00 AM12/9/98
to
"M. Lowerr" <mlo...@execpc.com> wrote:

>The code for a space is &nbsp;
>You may have better luck w/ <PRE> </PRE> as it shows text exactly as it appears.

Thanks for your help, and to everyone else who responded!

nicole sorenson

unread,
Dec 11, 1998, 3:00:00 AM12/11/98
to

I'd like to learn more about HTML and I was wondering how everyone learns
things such as this.. I haven't found any great sites that teach how and I
also would like some additions on my site such as noises and pictures...

I am also having trouble attaching uploads and I would like to know how you
can put links on things that are on the same page that you are linking it
to.. does anyone know what I am trying to explain?! I don't know what it's
called!

Anyways please help me! I would loooove to know! e-mail me at
nicolean...@dwp.net thanks!

Dale DePriest

unread,
Dec 11, 1998, 3:00:00 AM12/11/98
to

nicole sorenson wrote:

> I'd like to learn more about HTML and I was wondering how everyone learns
> things such as this.. I haven't found any great sites that teach how and I
> also would like some additions on my site such as noises and pictures...
>

Get a book and study it. There are many good ones in the book stores. Use the
ability to download source pages to view examples of neat sites on the web with
your browser.

Dale DePriest


Don or Darla Arnold

unread,
Dec 11, 1998, 3:00:00 AM12/11/98
to nicole sorenson
try the following links
don
http://www.geocities.com/Athens/2090/
http://www.geocities.com/SiliconValley/Heights/4124/
http://surf.to/free-4-all


nicole sorenson wrote:

> I'd like to learn more about HTML and I was wondering how everyone learns
> things such as this.. I haven't found any great sites that teach how and I
> also would like some additions on my site such as noises and pictures...
>

> I am also having trouble attaching uploads and I would like to know how you
> can put links on things that are on the same page that you are linking it
> to.. does anyone know what I am trying to explain?! I don't know what it's
> called!
>
> Anyways please help me! I would loooove to know! e-mail me at
> nicolean...@dwp.net thanks!

--
OUR WEB PAGE UPDATED 01 DEC 98
http://www.geocities.com/Heartland/Valley/6430 Darla and Don's Website
http://www.geocities.com/Heartland/Lane/8309 Darla's Christmas Page
Christmas page updated 6 DEC 98

DARLA (dawn) ICQ# 7341931
Don (weathernut) ICQ# 14664294

other pages DON is involved in
http://hattiesburg.net/columns/index.shtml updated 07 DEC 98 My online Column
http://www.qsl.net/kb5zvw Navy mars MS area page
http://members.xoom.com/MsSkywarn/ The Southern Mississippi Skywarn Group

Henry Schaumburger

unread,
Dec 15, 1998, 3:00:00 AM12/15/98
to
Joe,

Try using multiple <&nbsp;>. I have used this technique in the past.

Regards,
Henry

Joe wrote:

> I'm using the HTML teletype font (<tt>) to create a text report. The
> reason I chose this was to create a simple report with columns
> (without having to use tables). The problem is web browsers seem to
> strip out any multiple spaces (i.e., more than one space in a row) so
> they are not displayed. As a result my columns don't work. Is there an
> HTML tag that will override this space-stripping behaviour?
>
> I've also tried inserting tabs to make simple columns but the browsers
> don't seem to recognize tabs either.
>
> If all else fails and I'm forced to use tables, can someone direct me
> to a good SIMPLE reference on HTML table tabs? I'm very short for time
> on this project so I don't have time to pour through a comprehensive
> HTML reference.
>
> Thanks for any help you can provide.
>

J. Works

unread,
Dec 16, 1998, 3:00:00 AM12/16/98
to
Or try putting the text inside of <pre> </pre> tags. This tag is for
preformatted text and will display text in the same (or similar) font that
the <tt> tag uses. The <pre> tags throw all html rules out the door and will
display whatever you have between them.

joshua works

Amye Saunders

unread,
Dec 17, 1998, 3:00:00 AM12/17/98
to
Or, you can use a table with the table and the cells with a fixed pixel
width. Then you put one &nbsp; inside the empty cell.

Another way is to create an image (same as the background color) for the
exact size you want.

Browsers can render multiple &nbsp; in an undesirable way.
--
Amye Saunders
Bankers Trust Australia

J. Works <dmb2...@mailexcite.com> wrote in article
<75a5qn$2t...@news.midusa.net>...

Joe

unread,
Dec 17, 1998, 3:00:00 AM12/17/98
to
"J. Works" <dmb2...@mailexcite.com> wrote:

>Or try putting the text inside of <pre> </pre> tags. This tag is for
>preformatted text and will display text in the same (or similar) font that
>the <tt> tag uses. The <pre> tags throw all html rules out the door and will
>display whatever you have between them.

Thanks, that's what I've done and it works well. One note to anyone
trying this: don't put the <pre> </pre> tag on each line of data, as
doing so will generate two line feeds. Put out one <pre> tag, the
entire report including line feeds, then the </pre> end tag.

0 new messages