SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : HTML and CSS :

Previous DiscussionNext Discussion
 Multiple spaces in HTML - non printing characters

Hi all, 

I have a problem that is driving me mad - multiple spaces in html code are being replaced by a non printing character.                                                                                                                                                                                                               Here is an example: HERE ARE TEN SPACES          WHICH SHOULD NOT BE SUBSTITUTED FOR ANYTHING.

Can anyone explain why this character is being included in the html code?  It's driving me insane

Started By JB1 on Mar 15, 2006 at 2:51:38 AM

8 Response(s) | Reply

Earlier Replies | Replies 2 to 8 of 8 | Later Replies
Goto Page: 2 1
MHenke on Mar 16, 2006 at 12:04:23 AM (# 2)
This message has been edited.

Hum, the default behaviour is to replace multiple whitespace characters with a single blank.

Regarding the fact, that ten of these "spaces" are rendered as five (special) characters, I'd guess that we've a unicode/character encoding issue here and they aren't spaces at all.
I'd suggest to check the character encoding of the HTML page and the source code (you can e.g. use a hex editor to see if the "spaces" are actually spaces).


Monte on Mar 16, 2006 at 4:03:00 AM (# 3)

MHenke...you're correct. I misunderstood the question.


karlster on Mar 16, 2006 at 4:11:22 PM (# 4)

To add 10 spaces use   10 times.

This HTML

<P>I want 10 spaces between here&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;And Here </P>

Gives you this

I want 10 spaces between here          And Here


pivert on Mar 19, 2006 at 11:35:50 PM (# 5)

unless you're aligning columns?


computergeek101234 on Jul 4, 2006 at 2:26:53 PM (# 6)

I would try using a table (the first "TD" should be aligned to the left, and the second to the right). The only problem with this is you might get a line break, it's hard to tell.


Siteforsight on Jun 7, 2007 at 12:52:53 PM (# 7)

undefined


Siteforsight on Jun 7, 2007 at 12:53:44 PM (# 8)

undefined


Earlier Replies | Replies 2 to 8 of 8 | Later Replies
Goto Page: 2 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.