Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Art & Graphic Design > HTML Spaces

HTML Spaces
Thread Tools
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
May 18, 2011, 12:14 AM
 
So the non-breaking space,   , looks like a space, but acts like a letter. Meaning text won't wrap at the non-breaking space. Is there a character that does kind of the opposite? An invisible breaking space? Something that would act like a space, but have no width? Something I could put between every character of a long string, like say a 256 character hash, and have it wrap nicely as needed?
     
Moderator
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
May 18, 2011, 06:36 AM
 
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 18, 2011, 11:44 AM
 
You can control hyphenation via CSS:

CSS Text Level 3
     
Moderator
Join Date: Mar 2004
Location: Copenhagen
Status: Offline
Reply With Quote
May 18, 2011, 12:01 PM
 
Originally Posted by besson3c View Post
You can control hyphenation via CSS:

CSS Text Level 3
That won’t remove the need to manually insert a hyphenable (hyphenatable?) character between each character. Even if setting hyphenation to ‘all’ in your CSS, it won’t break a word between two regular characters.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 18, 2011, 12:42 PM
 
Then I guess your only option is Javascript.
     
Posting Junkie
Join Date: Oct 2005
Location: Houston, TX
Status: Offline
Reply With Quote
May 18, 2011, 06:41 PM
 
Why would you need js? Just use &#8203 between each character.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 18, 2011, 09:49 PM
 
Originally Posted by mduell View Post
Why would you need js? Just use &#8203 between each character.

Ahhh.. You're right! I've never used the zero width space before... Interesting.
     
l008com  (op)
Addicted to MacNN
Join Date: Jan 2000
Location: Stoneham, MA, USA
Status: Offline
Reply With Quote
May 24, 2011, 07:10 AM
 
So this works well, with one problem. If someone is copying text off a web page, the result is not going to be what they expect. And since this whole post was about a hash generator, there's a good chance the results WILL be copied. Maybe I can make a "button" that will replaced the plain text html results with results in a text area that can be easily copied... yeah that sounds like a plan.
     
Clinically Insane
Join Date: Mar 2001
Location: yes
Status: Offline
Reply With Quote
May 24, 2011, 11:57 AM
 
Maybe the hash could be displayed in a modal box so that it is out of the document flow?
     
Moderator
Join Date: Jun 2000
Location: We come from the land of the ice and snow...
Status: Offline
Reply With Quote
May 24, 2011, 12:49 PM
 
If they need to copy it without spaces, just hide the overflow and let them select the text box and select all, copy.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:00 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2