jQuery Mobile

Menu Search

Version Demos

Listview Responsive Grid

A regular listview on smartphones, but grid tiles on tablets and larger screens? This demo shows you how you can accomplish this with custom CSS.

Starting points

Create a listview from an unordered list. For this demo we used an inset listview to show you how you can apply the corner styling to the tiles as well.

In this demo there are two breakpoints. At the first breakpoint we swap from the regular stacked layout to a three column grid layout with tiles. At the second we switch from three to four columns.

The list items have a thumbail. In the grid layout those will get the same size as the tile. One list item doesn't hold an image to demonstrate how you can take advantage of class ui-listview-item-has-thumbnail to adjust the style.

Open demo

Listview Responsive Grid