Skip to Main Content
jQuery Mobile: Up and Running
book

jQuery Mobile: Up and Running

by Maximiliano Firtman
February 2012
Beginner to intermediate content levelBeginner to intermediate
272 pages
6h 20m
English
O'Reilly Media, Inc.
Content preview from jQuery Mobile: Up and Running

Creating Grids

There is a special widget that we can use to create CSS grids, as we have seen in a previous chapter. To do so, we need to use an HTML element with children and convert it to a grid of n columns based on the number of children.

To use it, we just call the grid jQuery function, for example:

$("#element").grid();

Based on how many children it has, it applies the right ui-grid-<letter> class to the element and the ui-block-letter to the children.

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.
Start your free trial

You might also like

jQuery Mobile

jQuery Mobile

Jon Reid

Publisher Resources

ISBN: 9781449331085Supplemental ContentErrata Page