Dang Dashes

How do I eliminate dashes and funky word breaks in word press?  I want to prevent widows and orphans and simply have the word wrap if it is too long.
nsitedesignsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

captainCommented:
I think you can do this in CSS.

First identify the class for your content that you want to affect by this

Go into your Theme Editor and create a Custom CSS entry (or add a line into the main CSS if you have no custom section) and find the class and define

word-wrap: normal;

Open in new window


so for example:
.main-content {
word-wrap: normal;
}

Open in new window

hth
capt.
0
nsitedesignsAuthor Commented:
Aye aye Captain!  : )

Let me see if that helps.  THanks
0
nsitedesignsAuthor Commented:
Nope.  Didn't help.  Dashes are still displaying on some browsers.  On IE, you see the words break but there is no dash.  This is the css we are using.  Any thoughts?  Site is designed using word press.

   word-wrap: normal;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    hyphens: none;

Open in new window

0
HTML5 and CSS3 Fundamentals

Build a website from the ground up by first learning the fundamentals of HTML5 and CSS3, the two popular programming languages used to present content online. HTML deals with fonts, colors, graphics, and hyperlinks, while CSS describes how HTML elements are to be displayed.

nsitedesignsAuthor Commented:
Our goal is to not have dashes and not have word breaks at all. I would hope there is some solution out there.
0
captainCommented:
Not sure, IE is its own beast.

Try using the white-space property in conjunction, to see if that forces the lines to break instead of the words.

white-space: normal;

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
nsitedesignsAuthor Commented:
What should we change white-space too?  Normal doesn't fix it.
0
captainCommented:
This is baffling. These CSS properties are all that you should need. Can you run a Element inspector on the text if there is not some CSS that overwrites that?

Do you have a link to the site?
0
nsitedesignsAuthor Commented:
I know.  My programmer and I are equally baffled.  

We decided just to put dashes back into equation (we were trying to not have them at all) to see if that fixes problem.
0
captainCommented:
thx, keep us posted.
0
nsitedesignsAuthor Commented:
could not get your solution to work. thanks for trying.
0
nsitedesignsAuthor Commented:
i will give you points for trying.  solution didn't work
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.