Columns | Grid Class | Column Widths |
---|---|---|
1 | ui-grid-solo | 100% |
2 | ui-grid-a | 50%/50% |
3 | ui-grid-b | 33% / 33% / 33% |
4 | ui-grid-c | 25% / 25% / 25% / 25% |
5 | ui-grid-d | 20% / 20% / 20% / 20% / 20% |
<div>
container should have one of the above Grid Class. The child elements in the container allows to use class ui-block- a|b|c|d|e
, based on column number. The columns appears side-by-side.
Eg:
[html]
<div class="ui-grid-b" style="height:40px">
<div class="ui-block-a"><span>Mango</span></div>
<div class="ui-block-b"><span>Orange</span></div>
<div class="ui-block-c"><span>Banana</span></div>
</div>
[/html]
In the above example for the class ui-grid-b
(two-column layout), three child elements of ui-block-a
and ui-block-b,ui-block-c
has to be specified. ui-responsive
class to apply responsiveness to the container.
Eg:
[html]
<div class="ui-grid-b ui-responsive">[/html]
If done so, Grid layout will set according to screen size.