Grid
Properties
Grid
is a new concept in css ,which have a large application but less
support.Which is used to Create Grid Layouts.
Usage:-
1).display
: grid | inline-grid | sub-grid :-
- grid :- generates a block level grid. Define the element as grid container abd establishes a new grid formatting context for it's contents.
- Inline-grid:- generates an inline-level grid.
- Sub-grid:-if your grid container itself a grid item ,you can use this property .
Note:-
when
Using this
column,float,clear and vertical-align have no effect on a grid
container.
2).grid-template-columns
and grid-template-rows :-
- grid-template-columns:- grid-template-columns used to set the width for the grid items.Syntax:- grid-template-columns : <track-size> | <line-name> <track-size>
- grid-template-rows:- grid-template-rows used to set the height for the grid items.Syntax:- grid-template-rows : <track-size> | <line-name> <track-size>
3).grid-row-gap
,grid-column-gap and gap:-
- grid-row-gap:- which is used to specify the gap between grid columns.
Syntax:-
grid-row-gap
: value;
- grid-column-gap:- which is used to specify the gap between grid rows.
Syntax:-
grid-column-gap : value;
- grid-gap:-Which is used to specify grid-row-gap and grid-column-gap in common.
Support:-
|
Browser
|
Indirect
Support
|
Direct
Support
|
|
IE
|
(using
-ms) 10
|
|
|
Fire
Fox
|
|
52
|
|
Chrome
|
|
57
|
|
Safari,Android
|
No
Support
|
No
Support
|
|
Edje
|
(using
-ms) 12
|
|
|
Opera
|
|
43
|

No comments:
Post a Comment