Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

grid css

/* Display-grid: When the display property is set to grid the container turn ups to the grid. */
display: grid;

/* Grid-template-areas: Determines how to display columns and rows, using named grid items */
 grid-template-areas: "myArea myArea . . .";

/* Grid-column-gap: Defines the gap between the columns */
grid-column-gap: 50px;

/* Grid-row-gap: Specifies the size of the gap between rows */
grid-row-gap: 50px;

/* Grid-template-columns: It Defines how many columns there should be in a grid layout */
grid-template-columns: auto auto auto auto;

/* Grid-template-rows: similar to grid-template-columns, The grid-template-rows property specifies the number of rows in a grid layout. */
grid-template-rows: 10px 30px;

/* Grid-auto-columns: The grid-auto-columns property specifies a size for the columns in a grid container. */
grid-auto-columns: 50px;

/* Put a default size for the rows in a grid: */
grid-auto-rows: 250px;

/* Grid-auto-flow: */
grid-auto-flow: column;

/* The place-content property allows you to align both justify-content and align content. */
place-content: align-content / justify-content ;

/* Grid-column-start: Defines where to start the grid item. */
grid-column-start: 4;

/* Grid-column-end: on which column line the item will end */
grid-column-end: span 2;

/* Grid-row-start: This property specifies on which row line the item will start */
grid-row-start: 2;

/* Grid-row-end: on which row line the item will end: */
grid-row-end: span 1;
Source by madni.hashnode.dev #
 
PREVIOUS NEXT
Tagged: #grid #css
ADD COMMENT
Topic
Name
1+5 =