Software, your way.
burger menu icon
WillMaster

WillMaster > LibraryWeb Content Preparation

FREE! Coding tips, tricks, and treasures.

Possibilities weekly ezine

Get the weekly email website developers read:

 

Your email address

name@example.com
YES! Send Possibilities every week!

Characters for Hyphenation

When the browser hyphenates a word because the line doesn't fit within the available width, it generally uses the common - character on most alpha-numeric keyboards. But other characters can be used.

To instruct the browser to use a different character (or characters) than the common hyphen, use the CSS hyphenate-character:"STRING"; declaration.

The CSS hyphenate-character property works with the latest browser versions and most later email reader versions. Older versions that do not support the property will publish a regular hyphen.

When you declare hyphenate-character:"~"; for a paragraph, any browser-inserted hyphens should be the ~ tilde character.

An outstanding re­mark­able thing.

If you want a special effect, an option would be to declare hyphenate-character:"♥"; to tell the browser that inserted hyphens should be represented by the heart character.

An outstanding re­mark­able thing.

You get the idea.

Now, how about even wider choices? You may specify multiple characters.

Try hyphenate-character:">↵"; to see what happens.

An outstanding re­mark­able thing.

As expected, the specified >↵ characters are used instead of a regular hyphen.

When you have a special case where a different character than a regular hyphen should be used for browser-inserted hypens, the CSS hyphenate-character:"STRING"; declaration can be used.

(This content first appeared in Possibilities newsletter.)

Will Bontrager

Was this article helpful to you?
(anonymous form)

Support This Website

Some of our support is from people like you who see the value of all that's offered for FREE at this website.

"Yes, let me contribute."

Amount (USD):

Tap to Choose
Contribution
Method

All information in WillMaster Library articles is presented AS-IS.

We only suggest and recommend what we believe is of value. As remuneration for the time and research involved to provide quality links, we generally use affiliate links when we can. Whenever we link to something not our own, you should assume they are affiliate links or that we benefit in some way.

How Can We Help You? balloons
How Can We Help You?
bullet Custom Programming
bullet Ready-Made Software
bullet Technical Support
bullet Possibilities Newsletter
bullet Website "How-To" Info
bullet Useful Information List

© 1998-2001 William and Mari Bontrager
© 2001-2011 Bontrager Connection, LLC
© 2011-2025 Will Bontrager Software LLC