7. Layout Options
jQuery Mobile is flexible in the sense that it’s based on standard HTML and CSS, so the layout options are essentially endless. However, the framework does offer a few enhancements in the form of widgets you can use to organize content and create custom layouts without writing additional code. Using data- attributes and standard CSS classes, the framework transforms the markup used to structure these widgets. In this chapter, you’ll learn how to create grids, collapsible content, and accordions.
Grids
Although jQuery Mobile still supports standard HTML tables, the framework also offers a simple alternative in the form of a widget called grids. Grids let you position elements next to one another. They’re useful for smaller elements ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access