SlideShare a Scribd company logo
WEB DESIGNING AND
DEVELOPMENT
BY:NAMAN GUPTA
BBACAM-5
35221001918
DATE:22-09-2020
TOPIC:CSS GRID LAYOUT MODULE
CONTENTS
 CSS(CASCADING STYLESHEETS)
 CSS GRID LAYOUT MODULE
 GRID ELEMENTS
 DISPLAY PROPERTY OF CSS GRID
 GRID ROWS AND COLUMNS
 GRID GAPS
 GRID LINES
 GRID CONTAINER
CASCADING STYLE SHEETS
(CSS)
 CSS stands for Cascading Style Sheets.
 CSS describes how HTML elements are to
be displayed on screen, paper, or in other
media.
 CSS saves a lot of work. It can control the
layout of multiple web pages all at once.
 CSS is a simple design language intended
to simplify the process of making web
pages presentable.
CSS GRID LAYOUT MODULE
The CSS Grid Layout Module offers a grid-based
layout system, with rows and columns, making it
easier to design web pages without having to use
floats and positioning.
CODING OF CSS GRID LAYOUT
<html>
<head>
<style>
.container {
display: grid;
grid: 100px / auto auto;
grid-gap: 5px;
background-color: BLACK;
padding: 10px;
}
.container div {
background-color: WHITE;
text-align: center;
padding:10px 0;
font-size: 20px;
} </style>
</head>
<body>
<div class = "container">
<div class = "GRID-ITEMS1">1</div>
<div class = "GRID-ITEM2">2</div>
<div class = "GRID-ITEM3">3</div>
<div class = "GRID-ITEM4">4</div>
<div class = "GRID-ITEM5">5</div>
<div class = "GRID-ITEM6">6</div>
</div>
</body>
</html>
GRID ELEMENTS
 A grid layout consists of a parent element, with one or more child
elements.
 You work with Grid Layout by applying CSS rules both to a parent
element (which becomes the Grid Container) and to that element’s
children (which become Grid Items)
<div class = "container">
<div class = "GRID-ITEMS1">1</div>
<div class = "GRID-ITEM2">2</div>
<div class = "GRID-ITEM3">3</div>
<div class = "GRID-ITEM4">4</div>
<div class = "GRID-ITEM5">5</div>
<div class = "GRID-ITEM6">6</div>
</div>
Display Property in GRID
DISPLAY PROPERTY
Grid
.grid-container {
display: grid;}
Inline-grid
.grid-container {
display: inline-grid;}
.
An HTML element becomes a grid container when its display property
is set to grid or inline-grid.
<html> <head>
<style>
.container {
display:inline-grid;
grid: 100px / auto auto;
grid-gap: 10px;
background-color: black;
padding: 10px }
.container div {
background-color: white;
text-align: center; padding:10px 0;
font-size: 20px; }
</style></head> <body>
<div class = "container"> <div class =
"GRIDITEMS1">1</div>
<div class = "GRID-ITEM2">2</div>
<div class = "GRID-ITEM3">3</div>
<div class = "GRID-ITEM4">4</div>
<div class = "GRID-ITEM5">5</div>
<div class = "GRID-ITEM6">6</div>
</div>
</body>
</html>
CODING AND OUTPUT OF INLINE GRID
GRID ROWS AND COLUMNS
The vertical lines of grid items are
called Grid columns.
The horizontal lines of grid items are
called Grid rows.
GRID GAPS
The spaces between each column/row are called gaps
I can adjust the gap size by using one of the following properties:
1.grid-column-gap
2.grid-row-gap
3.grid-gaps
.grid-container {
display: grid;
grid-row/column-gap: 30px;
grid-gaps: 50px,100px; }
GRID LINES
The lines between columns are called column lines. The lines between
rows are called row lines.
.GRID-ITEMS1{
GRID-COLUMN-START:1;
GRID-COLUMN-END:3;
}
GRID CONTAINER
Grid containers consist of grid items, placed inside
columns and rows.
Grid-Template-Columns/Rows Property
This defines the number of rows/columns in the grid as well as
their dimension.
The grid-template-columns property defines to specify the
size (width) of the columns.
The grid-template-rows property defines the height of each
row.
REFERENCES
 WWW.W3SCHOOLS.COM
 https://www.geeksforgeeks.org/css-
tutorials/.
 https://www.tutorialspoint.com/css
/index.htm
WEB DESIGNING AND DEVELOPMEENT.pptx

More Related Content

Similar to WEB DESIGNING AND DEVELOPMEENT.pptx

New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)
Igalia
 
Class15
Class15Class15
Class15
Jiyeon Lee
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
Kara Luton
 
Css for Development
Css for DevelopmentCss for Development
Css for Development
tsengsite
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
Tim Hettler
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By Palash
PalashBajpai
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
Ron Reiter
 
The 960 Grid System
The 960 Grid SystemThe 960 Grid System
Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout
Rachel Andrew
 
The Future Of Digital Layout - Cutting Edge CSS Features
The Future Of Digital Layout - Cutting Edge CSS FeaturesThe Future Of Digital Layout - Cutting Edge CSS Features
The Future Of Digital Layout - Cutting Edge CSS Features
Andre JAY Meissner
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
William Myers
 
2D Page Layout
2D Page Layout2D Page Layout
2D Page Layout
Unfold UI
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
Zoltan Iszlai
 
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSObject-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Li-Wei Lu
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
Jamshid Hashimi
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
Tim Wright
 
Css3
Css3Css3
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
Scrum Breakfast Vietnam
 
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
Morten Rand-Hendriksen
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Erin M. Kidwell
 

Similar to WEB DESIGNING AND DEVELOPMEENT.pptx (20)

New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)New layout models on the Web (Mobile World Congress 2014)
New layout models on the Web (Mobile World Congress 2014)
 
Class15
Class15Class15
Class15
 
Introduction to CSS Grid
Introduction to CSS GridIntroduction to CSS Grid
Introduction to CSS Grid
 
Css for Development
Css for DevelopmentCss for Development
Css for Development
 
SMACSS Workshop
SMACSS WorkshopSMACSS Workshop
SMACSS Workshop
 
CSS framework By Palash
CSS framework By PalashCSS framework By Palash
CSS framework By Palash
 
Introduction to Bootstrap
Introduction to BootstrapIntroduction to Bootstrap
Introduction to Bootstrap
 
The 960 Grid System
The 960 Grid SystemThe 960 Grid System
The 960 Grid System
 
Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout Google Developers Experts Summit 2017 - CSS Layout
Google Developers Experts Summit 2017 - CSS Layout
 
The Future Of Digital Layout - Cutting Edge CSS Features
The Future Of Digital Layout - Cutting Edge CSS FeaturesThe Future Of Digital Layout - Cutting Edge CSS Features
The Future Of Digital Layout - Cutting Edge CSS Features
 
Pfnp slides
Pfnp slidesPfnp slides
Pfnp slides
 
2D Page Layout
2D Page Layout2D Page Layout
2D Page Layout
 
CSS Walktrough Internship Course
CSS Walktrough Internship CourseCSS Walktrough Internship Course
CSS Walktrough Internship Course
 
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSSObject-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
Object-Oriented CSS 從 OOCSS, SMACSS, BEM 到 AMCSS
 
New Elements & Features in CSS3
New Elements & Features in CSS3New Elements & Features in CSS3
New Elements & Features in CSS3
 
Slow kinda sucks
Slow kinda sucksSlow kinda sucks
Slow kinda sucks
 
Css3
Css3Css3
Css3
 
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
CSS Flexbox and Grid: The future of website layouts - DN Scrum Breakfast - Au...
 
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
CSS Grid Changes Everything About Web Layouts: WordCamp Europe 2017
 
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
Girl Develop It Cincinnati: Intro to HTML/CSS Class 4
 

Recently uploaded

JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
Chart Kalyan
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Pitangent Analytics & Technology Solutions Pvt. Ltd
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
c5vrf27qcz
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
DianaGray10
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
Jason Yip
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
ssuserfac0301
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
akankshawande
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
Edge AI and Vision Alliance
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
Fwdays
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
christinelarrosa
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
christinelarrosa
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
operationspcvita
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
Javier Junquera
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
Fwdays
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
Neo4j
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
Pablo Gómez Abajo
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
ScyllaDB
 

Recently uploaded (20)

JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdfHow to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
How to Interpret Trends in the Kalyan Rajdhani Mix Chart.pdf
 
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
Crafting Excellence: A Comprehensive Guide to iOS Mobile App Development Serv...
 
Y-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PPY-Combinator seed pitch deck template PP
Y-Combinator seed pitch deck template PP
 
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance PanelsNorthern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
Northern Engraving | Modern Metal Trim, Nameplates and Appliance Panels
 
What is an RPA CoE? Session 1 – CoE Vision
What is an RPA CoE?  Session 1 – CoE VisionWhat is an RPA CoE?  Session 1 – CoE Vision
What is an RPA CoE? Session 1 – CoE Vision
 
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
[OReilly Superstream] Occupy the Space: A grassroots guide to engineering (an...
 
Taking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdfTaking AI to the Next Level in Manufacturing.pdf
Taking AI to the Next Level in Manufacturing.pdf
 
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development ProvidersYour One-Stop Shop for Python Success: Top 10 US Python Development Providers
Your One-Stop Shop for Python Success: Top 10 US Python Development Providers
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
“Temporal Event Neural Networks: A More Efficient Alternative to the Transfor...
 
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk"Frontline Battles with DDoS: Best practices and Lessons Learned",  Igor Ivaniuk
"Frontline Battles with DDoS: Best practices and Lessons Learned", Igor Ivaniuk
 
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptxPRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
PRODUCT LISTING OPTIMIZATION PRESENTATION.pptx
 
Christine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptxChristine's Supplier Sourcing Presentaion.pptx
Christine's Supplier Sourcing Presentaion.pptx
 
The Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptxThe Microsoft 365 Migration Tutorial For Beginner.pptx
The Microsoft 365 Migration Tutorial For Beginner.pptx
 
GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)GNSS spoofing via SDR (Criptored Talks 2024)
GNSS spoofing via SDR (Criptored Talks 2024)
 
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin..."$10 thousand per minute of downtime: architecture, queues, streaming and fin...
"$10 thousand per minute of downtime: architecture, queues, streaming and fin...
 
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge GraphGraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
GraphRAG for LifeSciences Hands-On with the Clinical Knowledge Graph
 
Mutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented ChatbotsMutation Testing for Task-Oriented Chatbots
Mutation Testing for Task-Oriented Chatbots
 
A Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's ArchitectureA Deep Dive into ScyllaDB's Architecture
A Deep Dive into ScyllaDB's Architecture
 

WEB DESIGNING AND DEVELOPMEENT.pptx

  • 1. WEB DESIGNING AND DEVELOPMENT BY:NAMAN GUPTA BBACAM-5 35221001918 DATE:22-09-2020 TOPIC:CSS GRID LAYOUT MODULE
  • 2. CONTENTS  CSS(CASCADING STYLESHEETS)  CSS GRID LAYOUT MODULE  GRID ELEMENTS  DISPLAY PROPERTY OF CSS GRID  GRID ROWS AND COLUMNS  GRID GAPS  GRID LINES  GRID CONTAINER
  • 3. CASCADING STYLE SHEETS (CSS)  CSS stands for Cascading Style Sheets.  CSS describes how HTML elements are to be displayed on screen, paper, or in other media.  CSS saves a lot of work. It can control the layout of multiple web pages all at once.  CSS is a simple design language intended to simplify the process of making web pages presentable.
  • 4. CSS GRID LAYOUT MODULE The CSS Grid Layout Module offers a grid-based layout system, with rows and columns, making it easier to design web pages without having to use floats and positioning.
  • 5. CODING OF CSS GRID LAYOUT <html> <head> <style> .container { display: grid; grid: 100px / auto auto; grid-gap: 5px; background-color: BLACK; padding: 10px; } .container div { background-color: WHITE; text-align: center; padding:10px 0; font-size: 20px; } </style> </head> <body> <div class = "container"> <div class = "GRID-ITEMS1">1</div> <div class = "GRID-ITEM2">2</div> <div class = "GRID-ITEM3">3</div> <div class = "GRID-ITEM4">4</div> <div class = "GRID-ITEM5">5</div> <div class = "GRID-ITEM6">6</div> </div> </body> </html>
  • 6. GRID ELEMENTS  A grid layout consists of a parent element, with one or more child elements.  You work with Grid Layout by applying CSS rules both to a parent element (which becomes the Grid Container) and to that element’s children (which become Grid Items) <div class = "container"> <div class = "GRID-ITEMS1">1</div> <div class = "GRID-ITEM2">2</div> <div class = "GRID-ITEM3">3</div> <div class = "GRID-ITEM4">4</div> <div class = "GRID-ITEM5">5</div> <div class = "GRID-ITEM6">6</div> </div>
  • 7. Display Property in GRID DISPLAY PROPERTY Grid .grid-container { display: grid;} Inline-grid .grid-container { display: inline-grid;} . An HTML element becomes a grid container when its display property is set to grid or inline-grid.
  • 8. <html> <head> <style> .container { display:inline-grid; grid: 100px / auto auto; grid-gap: 10px; background-color: black; padding: 10px } .container div { background-color: white; text-align: center; padding:10px 0; font-size: 20px; } </style></head> <body> <div class = "container"> <div class = "GRIDITEMS1">1</div> <div class = "GRID-ITEM2">2</div> <div class = "GRID-ITEM3">3</div> <div class = "GRID-ITEM4">4</div> <div class = "GRID-ITEM5">5</div> <div class = "GRID-ITEM6">6</div> </div> </body> </html> CODING AND OUTPUT OF INLINE GRID
  • 9. GRID ROWS AND COLUMNS The vertical lines of grid items are called Grid columns. The horizontal lines of grid items are called Grid rows.
  • 10. GRID GAPS The spaces between each column/row are called gaps I can adjust the gap size by using one of the following properties: 1.grid-column-gap 2.grid-row-gap 3.grid-gaps .grid-container { display: grid; grid-row/column-gap: 30px; grid-gaps: 50px,100px; }
  • 11. GRID LINES The lines between columns are called column lines. The lines between rows are called row lines. .GRID-ITEMS1{ GRID-COLUMN-START:1; GRID-COLUMN-END:3; }
  • 12. GRID CONTAINER Grid containers consist of grid items, placed inside columns and rows. Grid-Template-Columns/Rows Property This defines the number of rows/columns in the grid as well as their dimension. The grid-template-columns property defines to specify the size (width) of the columns. The grid-template-rows property defines the height of each row.