View Single Post
  #3 (permalink)  
Old Aug 9th, 2006, 11:01
ukgeoff ukgeoff is offline
Most Reputable Member
Join Date: Apr 2006
Location: Cornwall, UK
Posts: 1,310
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Spaces in HTML for a template

As you have discovered, browsers only render the first space in a sequence of spaces and ignore the rest.

There a number of possible approaches and it really depends on the amount of layout you have, how often you might need to change it and so forth.

The easiest approach is to use what are known as non-breaking spaces instead of ordinary spaces.

You do this be inserting the code   total of six characters, for each space required.

Another option might be have a div element as a container and then use span elements around the pieces of text with css used to specify one to align left and the other to align right.

As I said horses for courses. Come back if you want more info.
Reply With Quote