YouTip LogoYouTip

Jquerymobile Ref Css

jQuery Mobile CSS Classes | Rookie Tutorial


jQuery CSS Classes

jQuery Mobile CSS classes are used to style different elements.

The following list contains commonly used CSS styles:


Global Classes

The following classes can be used with jQuery Mobile widgets (buttons, toolbars, panels, tables, lists, etc.):

Class Description
ui-corner-all Adds rounded corners to an element
ui-shadow Adds shadow to an element
ui-overlay-shadow Adds multi-layered shadow to an element
ui-mini Makes the element smaller

Button Classes

In addition to global classes, you can add the following classes to <a> or <button> elements (not <input> buttons):

Class Description
ui-btn Applied to <a> elements to display them as buttons
ui-btn-inline Displays buttons on the same line
ui-btn-icon-top Positions the icon above the button text
ui-btn-icon-right Positions the icon to the right of the button text
ui-btn-icon-bottom Positions the icon below the button text
ui-btn-icon-left Positions the icon to the left of the button text
ui-btn-icon-notext Displays only the icon
ui-btn-a|b Specifies the button theme. "a" is the default (gray background with black text), while "b" changes it to a black background with white text

Icon Classes

All available icon classes can be used on <a> and <button> elements (see the jQuery Mobile Icon Reference for how to use them on other elements):

Class Icon Description Icon
ui-icon-action Action (generally used for page navigation/transitions) Image 1: action
ui-icon-alert Exclamation mark inside a triangle Image 2: alert
ui-icon-audio Speaker / audio device Image 3: audio
ui-icon-arrow-d-l Arrow pointing down-left Image 4: arrow-d-l
ui-icon-arrow-d-r Arrow pointing down-right Image 5: arrow-d-r
ui-icon-arrow-u-l Arrow pointing up-left Image 6: arrow-u-l
ui-icon-arrow-u-r Arrow pointing up-right Image 7: arrow-u-r
ui-icon-arrow-l Arrow pointing left Image 8: arrow-l
ui-icon-arrow-r Arrow pointing right Image 9: arrow-r
ui-icon-arrow-u Arrow pointing up Image 10: arrow-u
ui-icon-arrow-d Arrow pointing down Image 11: arrow-d
ui-icon-back Back Image 12: back
ui-icon-bars Three horizontal lines, typically used as a menu/list button icon Image 13: bars
ui-icon-bullets Used as a list button icon Image 14: bullets
ui-icon-calendar Calendar Image 15: calendar
ui-icon-camera Camera Image 16: camera
ui-icon-carat-d Downward sliding icon Image 17: carat-d
ui-icon-carat-l Leftward sliding icon Image 18: carat-l
ui-icon-carat-r Rightward sliding icon Image 19: carat-r
ui-icon-carat-u Upward sliding icon Image 20: carat-u
ui-icon-check Checkmark Image 21: check
ui-icon-clock Alarm clock Image 22: clock
ui-icon-cloud Cloud Image 23: cloud
ui-icon-comment Comment / message Image 24: comment
ui-icon-delete Delete Image 25: delete
ui-icon-edit Edit / pencil Image 26: edit
ui-icon-eye Eye Image 27: eye
ui-icon-forbidden Prohibited sign Image 28: forbidden
ui-icon-forward Forward - (undo / go back one step) Image 29: forward
ui-icon-gear Gear, typically used as a settings button icon Image 30: gear
ui-icon-grid Grid Image 31: grid
ui-icon-heart Heart shape, can be used for article favorites Image 32: heart
ui-icon-home Home Image 33: home
ui-icon-info Information Image 34: info
ui-icon-location Location Image 35: location
ui-icon-lock Lock Image 36: lock
ui-icon-mail Email / envelope Image 37: mail
ui-icon-minus Minus sign Image 38: minus
ui-icon-navigation Navigation Image 39: navigation
ui-icon-phone Phone Image 40: phone
ui-icon-power Power switch (On/off) Image 41: power
ui-icon-plus Plus sign Image 42: plus
ui-icon-recycle Recycle symbol Image 43: recycle
ui-icon-refresh Refresh Image 44: refresh
ui-icon-search Search / magnifying glass Image 45: search
← Event TransitionendEvent Onwaiting β†’