Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial