CSS: How to prevent long text from spilling out of the container

I would like to ask how I can prevent text spilling out of a div container  if someone does something like this : vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

because it won't wordwrap as there is no space.. so what happens it just spills over and runs across the other parts of the page.

Thanks a lot for your input in advance
czechmate1976Asked:
Who is Participating?
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.

Shinesh PremrajanEngineering ManagerCommented:

In the div tag of the containter specify this style

style="overflow:hidden";

Hope this helps
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
czechmate1976Author Commented:
It did the trick that it truly hid the spilling bit but is there something as wordwrap that would simply break the word? (no matter that it's a non-sense, just for estetics) . Thanks a lot, shinuq!!!
0
osiris00Commented:
if using css3 supported try

<div style=”word-wrap: break-word”>
0
czechmate1976Author Commented:
Thanks guys for your advice on this
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
Web Languages and Standards

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.