How to do word wrap with css

Sponsors

Many times we need to do word wrap using lanugages. I recommend use css for word wrapping.
You can force long (unbroken) text to wrap in a new line by specifying break-word with the word-wrap property.
This is a problem with CSS layouts that use floated divs.
Use following code for fix the word wrap with all divs.

div { word-wrap: break-word }

instead of this we always use following css code:

overflow:hidden;

But this is not good practice. Use word-wrap css property.
Word-wrap is supported in IE 5.5+, Firefox 3.5+, and WebKit browsers such as Chrome and Safari.

Incoming search terms:

You may like following Articles!

This entry was posted in CSS and tagged , by Wordpress API. Bookmark the permalink.

About Wordpress API

API means Application Program interface. In Wordpress API we are giving all the information about wordpress API. We worked for many wordpress plugins and themes. We have expertise in PHP, Databases, Graphic Design, Ruby on Rails, Java, Wordpress, Drupal and many CMS. We always give you the best solutions about wordpress and other related topics in This Blog. We will give you always fresh tips and tricks and techniques about wordpress in this blog.

24 thoughts on “How to do word wrap with css

  1. Pingback: uberVU - social comments

  2. Thanks for taking the time to chat about  this, I feel  fervently  about this and I benefit from learning about this subject.  Please, as you gain information, please add to  this blog with more information.  I have found it really useful.

  3. How-do-you-do, just needed you to know I have added your site to my Google bookmarks because of your extraordinary blog layout. But seriously, I think your site has one of the freshest theme I’ve came across. It really helps make reading your blog a lot easier.

  4. Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It’s always nice when you can not only be informed, but also entertained! I’m sure you had fun writing this article.

  5. This is my first time i visit here. I found so many interesting stuff in your blog especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the enjoyment here! keep up the good work.

  6. Thanks for taking this opportunity to discuss  this, I feel strongly  about it and I take pleasure in learning about this topic.  If possible, as you gain information, please add to  this blog with new information.  I have found it extremely useful.

  7. Recently, I didn’t give so much thought to writing comments on blog entries and have left comments even less. Checking out your insightful page, will probably encourage me to do so more regularly.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>