Non-breaking Space
6 October 2005, lunch time
I have ‘fixed’ the way my link log entries display slightly. The final hash mark (the permanent link to the entry) should never appear alone on a line anymore. This was done by using non-breaking spaces carefully. A non-breaking space (NBSP) is a space that should not produce an automatic line break following its position. For example, if you didn’t want the number 10 000 to be displayed with the 10 on one line and the 000 on another, you would separate the two components with a non-breaking space. In HTML, this usage is sometimes forgotten, as most people use non-breaking spaces to simply produce more than one consecutive space between two words. In HTML, consecutive white-space is stripped, so, if you really do want two spaces after a sentence, for example, you would need to use two non-breaking spaces. The character code for a non-breaking space is
. Use it wisely.