All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info
Discussion Forums
Login: Password:Remember me: Sign up! | Forgot password

Forums > Reference
This is a place to ask questions about math terminology, and to post links to other resources out on the web.
Gamer
2003-06-24 04:52:15
Spacing in Problems

In the most recent problem (Leapfrog), DJ spaced out everything evenly with extra spaces and such... I have been unsuccessful when doing that, extra spaces between things just get deleted. Plus, things don't line up right for me.

Three Spaces Between Words
One Space Between Words

Both of these would only have 1 space

WWWWW|

-----|

IIIII|

These would all have different | stopping places.

Gamer
2003-06-24 04:53:59
Re: Spacing in Problems

It looks fine when typing it.

QQQQQ|
WWWWW|
#####|
~~~~~|
[[[[[|
*****|
+++++|

But when you post it it looks all wierdo

friedlinguini
2003-06-24 05:03:58
Re: Spacing in Problems

That's because the text entry fields use a monospaced font. Also, HTML treats all strings of whitespace as a single space for plain text. Try using the <tt> or <pre> tags.

DJ
2003-06-24 12:32:50
Re: Spacing in Problems

Put things inside <pre> tags like this:
<pre>


word word
word (space) word
etc..
<lt;/pre>

Also, to put extra spaces inside normal text, hitting the space bar more than once in a row, or at the beginning of a line, will be deleted. You can type in &nbsp; between words(word &nbsp;&nbsp;word shows up as word   ) for the extra spaces.

(Now let's hope everything shows up the way I want it to..)
Gamer
2003-06-24 13:20:17
Re: Spacing in Problems

| | | |

| |
| | | |


| | | |
| |
| | | |


| | | |
| |
| | | |



Gamer
2003-06-24 13:21:52
Re: Spacing in Problems

All of them looked like the top one when formatted, with 1 enter between each.

DJ
2003-06-24 19:56:31
Re: Spacing in Problems

I'm assuming those were <pre>, <tt>, and nothing, in that order...
<pre> (pre-formatted text) will preserve your spacing and alignment in a fixed width font
<tt> (typewriter text) will display a fixed width font, but you will still lose extra spaces

levik
2003-06-25 02:02:44
Re: Spacing in Problems

TT works better in comments and forums, because the site's code turns all returns into BR tags (this causes PRE text to look double-spaced in these areas) - while TT does not handle multiple spaces, you can easily compensate for using non-whitespace characters for padding:
___123
_33451
____33

Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information