HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
jQuery Mobile provides a breakdown of a CSS-based layout. However, on mobile devices, considering the phone's screen width narrow, generally we do not recommend the use of disaggregated column layout.
But sometimes you want smaller elements (such as buttons or navigation tabs) are arranged side by side together, like as in a table. In this case, it is recommended to use sub-column layout.
Grid columns are of equal width (total 100%), no border, background, margin or padding.
There are four layout grid are available:
Grid class | Row | Column Width | correspond | Examples |
---|---|---|---|---|
ui-grid-solo | 1 | 100% | ui-block-a | try it |
ui-grid-a | 2 | 50% / 50% | ui-block-a | b | try it |
ui-grid-b | 3 | 33% / 33% / 33% | ui-block-a | b | c | try it |
ui-grid-c | 4 | 25% / 25% / 25% / 25% | ui-block-a | b | c | d | try it |
ui-grid-d | 5 | 20% / 20% / 20% / 20% / 20% | ui-block-a | b | c | d | e | try it |
In the column containers, sub-elements have class as ui-block-a | b | c | d | e depending on the number of columns. Floating row side by side. Examples 1: class of ui-grid-a (two layouts), you must specify the ui-block-a and ui-block-b of the two sub-elements. Examples 2: class of ui-grid-b (three layouts), you must add ui-block-a, ui- block-b and ui-block-c of the three sub-elements. |
By using CSS, you can customize column blocks:
You can also customize using the inline style blocks:
<div class="ui-block-a" style="border: 1px solid black;"><span>Text/en</span></div>
In the column, you can also have multiple lines.
Note: ui-block-a-class always create a new line:
In the small screen, too much is not recommended in a row side by side button (text shortened).
We create a responsive grid for use in container ui-responsive categories: