Designer,

Thanks for that. I see what you mean about the space at the end of the line in para 2, but the content won't be justified on the site so shouldn't be an issue.

Nick

Designer wrote:
Nick Roper wrote:
Hi Group,

A client has requested that the content on their site has two spaces between the end of one sentence and the start of the next. We could do it by using non-breaking spaces, but is there a better way of achieving this - possibly with CSS?

Thanks in anticipation.

Nick

We had a discussion on this recently, and, although tedious, it was decided that each sentence was best put in a <span class="sentence"> wherein this was defined simply as :

           .sentence {padding-right: 0.5em; }

All other approaches (non-breaking space, using pre, etc) had problems, it seems.

You can see a page done like this at:

http://www.rhh.myzen.co.uk/rhh2007/terms/terms.html (this site is under construction)

You can see one of the pitfalls in paragraph 2: if the text is justified, you encounter some lines shorter, because of the padding, but it isn't often, so I decided that it was better to have a small % incorrect whilst maintaining the spacing throughout the rest of the page/site.

I have painstakingly done this for the whole of the site - but the client is delighted! :'( and :-)

HTH,



--
Nick Roper
partner
logical elements
innovative web and internet solutions
zend/php & mysql approved partner
email: [EMAIL PROTECTED]
phone: +44 1749 676798
 www: www.logical.co.uk
skype: nick.roper / +44 20 7870 9587


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to