Non-breaking Space

    6 October 2005, mid-morning

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.

 

Comments

Don't be shy, you can comment too!

 
Some things to keep in mind: You can style comments using Textile. In particular, *text* will get turned into text and _text_ will get turned into text. You can post a link using the command "linktext":link, so something like "google":http://www.google.com will get turned in to google. I may erase off-topic comments, or edit poorly formatted comments; I do this very rarely.