Skip to content

Instantly share code, notes, and snippets.

@cgkio
Created January 19, 2013 01:38
Show Gist options
  • Save cgkio/4570138 to your computer and use it in GitHub Desktop.
Save cgkio/4570138 to your computer and use it in GitHub Desktop.
Disable truncation for list items and buttons in jQuery Mobile. #JQM
/* Disable truncation for list items and buttons. If your list item or button has a long text, it will be truncated automatically by jQuery Mobile. To disable this truncation, add “white-space: normal;” to the CSS selector in question.
For example, to disable truncation for buttons: */
.ui-btn-text {
white-space: normal;
}
/* To disable truncation for list descriptions: */
.ui-li-desc {
white-space: normal;
}
/* To enable truncation, set it to “white-space: nowrap;“. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment