Created
January 19, 2013 01:38
-
-
Save cgkio/4570138 to your computer and use it in GitHub Desktop.
Disable truncation for list items and buttons in jQuery Mobile. #JQM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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