Computing.Net > Forums > Web Development > Phrase as in word spacing

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Phrase as in word spacing

Reply to Message Icon

Name: lucky1
Date: May 4, 2005 at 09:27:31 Pacific
OS: win98 se
CPU/Ram: amd 1.4 \ 512
Comment:

I would like to add space to some phrases using CSS word spacing.

Is there a way to do "phrase-spacing" ???

How do I code, for instance "Man with briefcase " 15em "Night Lights" 15em "At Home"?

Might also add that I am not a coder, so any direction will be appreaciated.

Thanks,

lucky1



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: May 4, 2005 at 12:51:37 Pacific
Reply:

Easy enough. You just need to set the word-spacing to 15em for the spaces between the phrases. You can use span tags to identify a certain portion of text that you want to apply a property to. It would look like this:

Man with briefcase<span style="word-spacing:15em;"> </span>Night Lights<span style="word-spacing:15em;"> </span> At Home

(Note: there is a single space between the sets of span tags)

Or, if you will need to apply that property in more than a couple places, you can create a named style. For instance:

Put this in the head of your document

<style>
.wrdSpc {word-spacing:15em;}
</style>

Then in your document you would just use span tags as follows:

Man with briefcase<span class="wrdSpc"> </span>Night Lights<span class="wrdSpc"> </span> At Home

This way if you ever need to change the value of the spacing throughout the document, you just need to change the value in the head of the document.

Michael J


0

Response Number 2
Name: lucky1
Date: May 4, 2005 at 14:15:03 Pacific
Reply:

Hi Michael J,

A million thanks to this forum and to all who make it work.

It never occured to me to use span for the spaces.

It works and so simple !!!!!

lucky1



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


help! php emails me,Retur... Show content without load...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Phrase as in word spacing

Hyperlink in Word 2007 www.computing.net/answers/webdevel/hyperlink-in-word-2007/4113.html

Right Click Save As in Instant Msg www.computing.net/answers/webdevel/right-click-save-as-in-instant-msg/2785.html

ASP-VBScript print tab in select www.computing.net/answers/webdevel/aspvbscript-print-tab-in-select/1906.html