Skip to content

This repository is a beginner's guide to CSS Grid, covering the basics of how to use Grid to layout and align elements in a web page.

Notifications You must be signed in to change notification settings

OviSarkar62/CSS_Grid_Basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSS Grid Basics

This repository is a beginner's guide to CSS Grid, covering the basics of how to use Grid to layout and align elements in a web page.

Understanding Grid

CSS Grid is a powerful layout module that allows you to create complex grid-based layouts with ease. With Grid, you can create rows and columns to organize and align elements on a web page.

Some of the key concepts in Grid include:

  • Grid container: The container element that holds the grid items.
  • Grid item: The child elements of the grid container.
  • Grid lines: The lines that define the rows and columns of the grid.
  • Grid tracks: The space between two adjacent grid lines.
  • Grid areas: A named area on the grid that contains one or more grid items.

Basic Grid Properties

Here are some of the most commonly used Grid properties:

  • display: grid: Turns an element into a Grid container.
  • grid-template-columns: Specifies the width of each column in the grid.
  • grid-template-rows: Specifies the height of each row in the grid.
  • grid-gap: Specifies the space between grid items.
  • grid-template-areas: Specifies the layout of the grid using named areas.

Examples

The repository includes examples of how to use Grid to create different layouts. You can check out the examples

About

This repository is a beginner's guide to CSS Grid, covering the basics of how to use Grid to layout and align elements in a web page.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published