PDA

View Full Version : what is the html code for a single white space?


binary
05-20-2003, 08:40 AM
sorry this is rather embarrasing but i've forgotten the code (i normally use dreamweaver but dun hv access to any html generator at the moment). can anyone recall offhand?

greatly appreciate - thanx!

binary
05-20-2003, 08:51 AM
uh...hullo...no one can recall? or can anyone kindly direct me to a html resource directory (online) to look this up? i really dun hv my reference books with me at the moment. thanx!

ronaldb66
05-20-2003, 09:17 AM
Don't expect to get an anwser within 11 minutes on any forum, and it's & nbsp;
Try W3Schools (http://www.w3schools.com/) for tutorials and HTML 4.01 Specification (http://www.w3.org/TR/html401/cover.html) for the complete W3C spec on HTML.

Update: vB converted it to a space, hence the extra space between & and nbsp; you'll have to remove that.

binary
05-20-2003, 09:45 AM
some kind soul just messaged me ....it's   .......k, thanx so much!

giz
05-21-2003, 09:44 PM
You can get   to appear in a forum.

You have to type   to get it to show up.

The first & is actually rendered as an & and the nbsp; then follows it as plain text.

If you just type   then the code gets rendered to just a space.

To get   to show on screen you have to type in   instead.



Is that clear?

BloodXero
05-21-2003, 09:47 PM
& n b s p ; ... but no spaces.

giz
05-21-2003, 09:52 PM
Nope.


See above.

cheesebagpipe
05-22-2003, 01:40 AM
Just a note: the technique described by giz is usable for virtually any HTML character entity that you don't want interpreted by this board, as well as vBulletin's favorite script-breaker:

type in ----------------------> get

& ---------------------> &
javascript: ------------> javascript:
• ---------------> •
» ---------------> »
about:blank -----------> about:blank
EAT SHIT & DIE ---> [not available]

swmr
05-22-2003, 01:54 AM
It would be nice if there was a "how to" sticky in these forums...:confused:

mouse
05-22-2003, 02:33 AM
White space, probably not worthy of a sticky in itself ;) All the special characters are listed in the link below, probably worth bookmarking.

Go here: http://hotwired.lycos.com/webmonkey/reference/special_characters/

:thumbsup:

liorean
05-22-2003, 02:35 AM
Originally posted by cheesebagpipe
javascript: ------------> javascript:
Hmm, and I who have always used "javascript:" for that...

Good to know so that I can correct it :)

BloodXero
05-22-2003, 04:40 PM
how is & n b s p; not the code for white space.

sage45
05-22-2003, 05:12 PM
Well it is... But if you were to tell a user that it was & n b s p ; and they used it exactly like that on their webpage they would not get a space but would get & n b s p ; as displayed....

So as to keep the poster from getting confused and to keep the person attempting to help the poster from having to type extra information i.e. -- it is & n b s p ; without the spaces; it is &^n^b^s^p^; without the ^... It is just easier and proper to write it out in it's true html form which is &amp;nbsp;... Much in the same way you would use <HTML> as opposed to < H T M L >...

-sage-

zoobie
05-22-2003, 05:39 PM
Thread=:rolleyes:

BloodXero
05-22-2003, 11:04 PM
dude ... are you blind or something. i put WITHOUT THE SPACES right after it. usually people are smart enough to pickup on what to take out ... because usually there is nothing there.

sage45
05-22-2003, 11:12 PM
First off, it is really a catch-22, in other words you say tow-may-toe and I say tow-mah-toe...

Secondly, please refrain from flaming people within threads... As I said in my post, putting it with &amp;nbsp; saves you the trouble of the extra keystrokes and is also properly formated...

Thirdly, Never assume anything... Some users will actually type in & n b s p ; and come back saying that it doesnt work...

To put it mildly, your way works just as well, however, it saves you more time in the long run to type:

&amp;nbsp;

As opposed to:

& n b s p ;... without the spaces...

-sage-

P.S. --> Closing thread as it has served it's purpose...