Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sunitakarle23/css-grid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

css-grid

reference-

  https://cssgrid.io/
  browser-sync:
	  watch html, js, css files & automatically reload the browser

#To Run

npm install
npm start

#Grid lines

The vertical and horizontal lines that divide the grid and separate the columns and rows.

#Grid cell

A single unit of a CSS grid.

#Grid area

Rectangular space surrounded by four grid lines. A grid area can contain any number of grid cells.

#Grid track

The space between two grid lines. This space can be horizontal or vertical

#Grid row

A horizontal track of a grid.

#Grid column

A vertical track of a grid.

#Gutter

The space between rows and columns in a grid.

#Grid container

The container that holds the entire CSS grid. It will be the element that has the display: grid or display: inline-grid property on it.

#Grid item

Any element that is a direct child of a grid container.

#Explicit/Implicit track

when we set any grid coloumn or row width it is called explicit
	e.g-
		grid-template-columns: 200px 300px 600px;
			- when we does not set any grid coloumn or row width it is called implicit
		grid-template-columns: 200px 300px 600px;1

		grid-auto-rows:
			sets the property to row which have implicitly created
		grid-auto-coloumns:
			sets the property to column which have implicitly created

		grid-auto-flow: column

#sizing-track :

free space/ fractional sets the same columns .
	e.g -  grid-template-columns: 1fr 2fr 1fr;

#grid-column :

set number of column width
	e.g - grid-column: span 2;

#grid-row :

set number of row width
	e.g - grid-row: span 2;

#auto-fill/auto-fit :

fill or fit the coloumn in a given row.
e.g -
	grid-template-column: repeat(auto-fit, 1fr);
	grid-template-column: repeat(auto-fill, 1fr);

#grid-column-start:

e.g -
	grid-column-start: span 3;

#grid-column-end:

e.g -
	grid-column-end: span 5;

#responsive grids:

grid-template-column: repeat(auto-fit, minmax(150px, 1fr));

#grid-template-areas:

set the layout areas using classnames
e.g-
	grid-template-areas:
		"header header header"
		"sidebar content sidebar"
		"footer footer footer"

#grid-auto-flow: dense

   arrange the cells in blank spaces

#Alignment & centering properties

justify-content: space-between / space-around
	align-content: space-between / space-around
	justify-items: center/ start / end/ flex-start/ flex-end /stretch
	align-items: center/ start / end/ flex-start/ flex-end /stretch
	align-self: center/ start / end/ flex-start/ flex-end /stretch ;
	justify-self: center/ start / end/ flex-start/ flex-end /stretch ;

#Reordering grid property

	order: 1/2/3/.....;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors