Spacing
leah
Status: New User - Welcome
Joined: 28 Feb 2004
Posts: 3
Reply Quote
Does anyone know how to make spaces between two words on a page. I need more than one space intween two words?
Back to top
jeffd
Status: Assistant
Joined: 04 Oct 2003
Posts: 594
Reply Quote
Yes, that's pretty simple, and is now supported better than it used to be. Just add as many characters in a row as you need to make the space, that didn't used to work, but it does now. Unlike simple spaces, which the browser ignores, the literal space character forces a space to be added:

Like this: text     text
will display as: text text

but text     text
will display as text    text, just like you want it to.

When using special characters, keep in mind that they have to end with a semicolon, like this:   not like this: &nbsp

Special characters always begin with &, that's why using the & character anywhere else on your page, like text & text instead of text & text will trigger a validation error on the code.

You can find a list of html characters here:

www.ramsch.org/martin/uni/fmi-hp/iso8859-1.html

You can use either the number form or the text form, either way is fine, except the text based one is easier to remember.
Back to top
Display posts from previous:   

All times are GMT - 8 Hours