I am currently developing a project using the jQuery mobile framework.
I have a specific structure that I would like to present in a table-like layout:
<div style="word-wrap:break-word" class="ui-block-n" ><li>verylongword.........</li></div>
However, I am facing an issue where long words are overflowing outside of the div instead of wrapping around. Even though I have tried using word-wrap: break-word
and various other options such as:
white-space: pre-wrap;
white-space: -moz-pre-wrap;
white-space: -pre-wrap;
white-space: -o-pre-wrap;
word-wrap: break-word;
I have not been successful in getting the words to wrap as desired. Is there another method I can use to achieve this wrapping effect?