SlideShare a Scribd company logo
CSS: Styling the Web
Learn the foundation of web development
Organised by: GDG-SRGI & Coding Club
Harsh Agarwal
Speaker
(Web Dev Lead)
Er. Aman Saluja
Faculty Advisor
Session 2
• CSS ADVANCE
• DOUBTS
Flex Container properties
These properties are applied to the parent container (with display: flex or
display: inline-flex).
display:
Values: flex, inline-flex
Description: Establishes a flex container, enabling its children to become flex
items.
Flex Container
CODE OUTPUT
gdg_workshop 5 on web development HTML & CSS
Flex Container
flex-direction:
Values: row, row-reverse, column, column-reverse
Description: Defines the direction of the main axis (horizontal or
vertical).
flex-wrap:
Values: nowrap, wrap, wrap-reverse
Description: Controls whether flex items should wrap onto multiple
lines.
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
gdg_workshop 5 on web development HTML & CSS
Flex Container
align-content:
Values: stretch, flex-start, flex-end, center, space-between, space-around
Description: Aligns rows when there's extra space on the cross axis (only works with
wrapped content).
gap, row-gap, column-gap:
Values: Any length value (e.g., 10px, 1rem)
Description: Adds spacing between flex items (gap applies to both rows and columns).
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
CODE OUTPUT
gdg_workshop 5 on web development HTML & CSS
Flex Item Properties
These properties are applied to the child elements (flex items).
order:
Values: Any integer (default is 0)
Description: Controls the order of the flex items. Items with lower values appear
first.
flex-grow:
Values: Any non-negative number (default is 0)
Description: Determines how much an item should grow relative to others when
extra space is available.
gdg_workshop 5 on web development HTML & CSS
Flex Item Properties
flex-shrink:
Values: Any non-negative number (default is 1)
Description: Determines how much an item should shrink relative to others when
space is insufficient.
flex-basis:
Values: Any length or auto (default is auto)
Description: Sets the initial size of an item before flex-grow or flex-shrink is applied.
gdg_workshop 5 on web development HTML & CSS
Flex Item Properties
flex:
Shorthand for flex-grow, flex-shrink, and flex-basis
Values: none (0 0 auto), auto (1 1 auto), <flex-grow> <flex-shrink> <flex-basis>
Description: A shorthand property for flexible sizing.
align-self:
Values: auto, flex-start, flex-end, center, baseline, stretch
Description: Overrides align-items for individual flex items.
gdg_workshop 5 on web development HTML & CSS
Assignment
THANK YOU!!
gdg_workshop 5 on web development HTML & CSS
Ad

More Related Content

Similar to gdg_workshop 5 on web development HTML & CSS (20)

Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)
Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)
Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)
Stephen Hay
 
But what about old browsers?
But what about old browsers?But what about old browsers?
But what about old browsers?
Rachel Andrew
 
slides-students-C04.pdf
slides-students-C04.pdfslides-students-C04.pdf
slides-students-C04.pdf
MonkeyDLuffy708724
 
The Right Layout Tool for the Job
The Right Layout Tool for the JobThe Right Layout Tool for the Job
The Right Layout Tool for the Job
Rachel Andrew
 
Is Flexbox the Future of Layout?
Is Flexbox the Future of Layout?Is Flexbox the Future of Layout?
Is Flexbox the Future of Layout?
jameswillweb
 
The New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP ConferenceThe New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP Conference
Rachel Andrew
 
Flexbox every developers dream
Flexbox every developers dreamFlexbox every developers dream
Flexbox every developers dream
2019gracesmith
 
Using Flexbox Today (Frontier Conf 2016)
Using Flexbox Today (Frontier Conf 2016)Using Flexbox Today (Frontier Conf 2016)
Using Flexbox Today (Frontier Conf 2016)
Zoe Gillenwater
 
JavaFX Layout Secrets with Amy Fowler
JavaFX Layout Secrets with Amy FowlerJavaFX Layout Secrets with Amy Fowler
JavaFX Layout Secrets with Amy Fowler
Stephen Chin
 
Using Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptxUsing Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptx
viswa7417
 
Flexbox, Grid and Sass
Flexbox, Grid and SassFlexbox, Grid and Sass
Flexbox, Grid and Sass
Seble Nigussie
 
Future Layout & Performance
Future Layout & PerformanceFuture Layout & Performance
Future Layout & Performance
Rachel Andrew
 
CSS Grid vs. Flexbox
CSS Grid vs. FlexboxCSS Grid vs. Flexbox
CSS Grid vs. Flexbox
Ecaterina Moraru (Valica)
 
The New CSS Layout - dotCSS
The New CSS Layout - dotCSSThe New CSS Layout - dotCSS
The New CSS Layout - dotCSS
Rachel Andrew
 
Using Flexbox Today (Generate Sydney 2016)
Using Flexbox Today (Generate Sydney 2016)Using Flexbox Today (Generate Sydney 2016)
Using Flexbox Today (Generate Sydney 2016)
Zoe Gillenwater
 
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
Eric Carlisle
 
CSS Flexbox and Grid Layouts
CSS Flexbox and Grid LayoutsCSS Flexbox and Grid Layouts
CSS Flexbox and Grid Layouts
Anantha kumar
 
MTA css layouts
MTA css layoutsMTA css layouts
MTA css layouts
Dhairya Joshi
 
Intro to Flexbox - A Magical CSS Property
Intro to Flexbox - A Magical CSS PropertyIntro to Flexbox - A Magical CSS Property
Intro to Flexbox - A Magical CSS Property
Adam Soucie
 
React native
React nativeReact native
React native
Mohammed El Rafie Tarabay
 
Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)
Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)
Flexbox: One Giant Leap for Web Layout (GenerateConf 2013)
Stephen Hay
 
But what about old browsers?
But what about old browsers?But what about old browsers?
But what about old browsers?
Rachel Andrew
 
The Right Layout Tool for the Job
The Right Layout Tool for the JobThe Right Layout Tool for the Job
The Right Layout Tool for the Job
Rachel Andrew
 
Is Flexbox the Future of Layout?
Is Flexbox the Future of Layout?Is Flexbox the Future of Layout?
Is Flexbox the Future of Layout?
jameswillweb
 
The New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP ConferenceThe New CSS Layout - Dutch PHP Conference
The New CSS Layout - Dutch PHP Conference
Rachel Andrew
 
Flexbox every developers dream
Flexbox every developers dreamFlexbox every developers dream
Flexbox every developers dream
2019gracesmith
 
Using Flexbox Today (Frontier Conf 2016)
Using Flexbox Today (Frontier Conf 2016)Using Flexbox Today (Frontier Conf 2016)
Using Flexbox Today (Frontier Conf 2016)
Zoe Gillenwater
 
JavaFX Layout Secrets with Amy Fowler
JavaFX Layout Secrets with Amy FowlerJavaFX Layout Secrets with Amy Fowler
JavaFX Layout Secrets with Amy Fowler
Stephen Chin
 
Using Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptxUsing Bootstrap to Make Accessible Front-Ends(2).pptx
Using Bootstrap to Make Accessible Front-Ends(2).pptx
viswa7417
 
Flexbox, Grid and Sass
Flexbox, Grid and SassFlexbox, Grid and Sass
Flexbox, Grid and Sass
Seble Nigussie
 
Future Layout & Performance
Future Layout & PerformanceFuture Layout & Performance
Future Layout & Performance
Rachel Andrew
 
The New CSS Layout - dotCSS
The New CSS Layout - dotCSSThe New CSS Layout - dotCSS
The New CSS Layout - dotCSS
Rachel Andrew
 
Using Flexbox Today (Generate Sydney 2016)
Using Flexbox Today (Generate Sydney 2016)Using Flexbox Today (Generate Sydney 2016)
Using Flexbox Today (Generate Sydney 2016)
Zoe Gillenwater
 
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
The New UI - Staying Strong with Flexbox, SASS, and {{Mustache.js}}
Eric Carlisle
 
CSS Flexbox and Grid Layouts
CSS Flexbox and Grid LayoutsCSS Flexbox and Grid Layouts
CSS Flexbox and Grid Layouts
Anantha kumar
 
Intro to Flexbox - A Magical CSS Property
Intro to Flexbox - A Magical CSS PropertyIntro to Flexbox - A Magical CSS Property
Intro to Flexbox - A Magical CSS Property
Adam Soucie
 

More from SaniyaKhan484230 (7)

solution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institutionsolution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institution
SaniyaKhan484230
 
gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSSgdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 3 on web development HTML & CSS
gdg_workshop 3 on web development HTML & CSSgdg_workshop 3 on web development HTML & CSS
gdg_workshop 3 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 2 on web development and github
gdg_workshop 2 on web development and githubgdg_workshop 2 on web development and github
gdg_workshop 2 on web development and github
SaniyaKhan484230
 
gdg_workshop 1 on web development and github
gdg_workshop 1 on web development and githubgdg_workshop 1 on web development and github
gdg_workshop 1 on web development and github
SaniyaKhan484230
 
CN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman inductionCN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman induction
SaniyaKhan484230
 
Introduction (1)[1].pptx about GDG Info session 2024
Introduction (1)[1].pptx about GDG  Info session 2024Introduction (1)[1].pptx about GDG  Info session 2024
Introduction (1)[1].pptx about GDG Info session 2024
SaniyaKhan484230
 
solution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institutionsolution challenge tech winter break GDG Sr Group of institution
solution challenge tech winter break GDG Sr Group of institution
SaniyaKhan484230
 
gdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSSgdg_workshop 4 on web development HTML & CSS
gdg_workshop 4 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 3 on web development HTML & CSS
gdg_workshop 3 on web development HTML & CSSgdg_workshop 3 on web development HTML & CSS
gdg_workshop 3 on web development HTML & CSS
SaniyaKhan484230
 
gdg_workshop 2 on web development and github
gdg_workshop 2 on web development and githubgdg_workshop 2 on web development and github
gdg_workshop 2 on web development and github
SaniyaKhan484230
 
gdg_workshop 1 on web development and github
gdg_workshop 1 on web development and githubgdg_workshop 1 on web development and github
gdg_workshop 1 on web development and github
SaniyaKhan484230
 
CN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman inductionCN.pdf (1).pdf codingninjas freshman induction
CN.pdf (1).pdf codingninjas freshman induction
SaniyaKhan484230
 
Introduction (1)[1].pptx about GDG Info session 2024
Introduction (1)[1].pptx about GDG  Info session 2024Introduction (1)[1].pptx about GDG  Info session 2024
Introduction (1)[1].pptx about GDG Info session 2024
SaniyaKhan484230
 
Ad

Recently uploaded (20)

twin tower attack 2001 new york city
twin  tower  attack  2001 new  york citytwin  tower  attack  2001 new  york city
twin tower attack 2001 new york city
harishreemavs
 
Slide share PPT of NOx control technologies.pptx
Slide share PPT of  NOx control technologies.pptxSlide share PPT of  NOx control technologies.pptx
Slide share PPT of NOx control technologies.pptx
vvsasane
 
Computer Security Fundamentals Chapter 1
Computer Security Fundamentals Chapter 1Computer Security Fundamentals Chapter 1
Computer Security Fundamentals Chapter 1
remoteaimms
 
Redirects Unraveled: From Lost Links to Rickrolls
Redirects Unraveled: From Lost Links to RickrollsRedirects Unraveled: From Lost Links to Rickrolls
Redirects Unraveled: From Lost Links to Rickrolls
Kritika Garg
 
Novel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth ControlNovel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth Control
Chris Harding
 
MODULE 03 - CLOUD COMPUTING- [BIS 613D] 2022 scheme.pptx
MODULE 03 - CLOUD COMPUTING-  [BIS 613D] 2022 scheme.pptxMODULE 03 - CLOUD COMPUTING-  [BIS 613D] 2022 scheme.pptx
MODULE 03 - CLOUD COMPUTING- [BIS 613D] 2022 scheme.pptx
Alvas Institute of Engineering and technology, Moodabidri
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制
最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制
最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制
Taqyea
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdfATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ssuserda39791
 
Surveying through global positioning system
Surveying through global positioning systemSurveying through global positioning system
Surveying through global positioning system
opneptune5
 
ZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JITZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JIT
maximechevalierboisv1
 
Building-Services-Introduction-Notes.pdf
Building-Services-Introduction-Notes.pdfBuilding-Services-Introduction-Notes.pdf
Building-Services-Introduction-Notes.pdf
Lawrence Omai
 
Generative AI & Large Language Models Agents
Generative AI & Large Language Models AgentsGenerative AI & Large Language Models Agents
Generative AI & Large Language Models Agents
aasgharbee22seecs
 
Autodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User InterfaceAutodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User Interface
Atif Razi
 
Slide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptxSlide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptx
vvsasane
 
Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32
CircuitDigest
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Resistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff modelResistance measurement and cfd test on darpa subboff model
Resistance measurement and cfd test on darpa subboff model
INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR
 
twin tower attack 2001 new york city
twin  tower  attack  2001 new  york citytwin  tower  attack  2001 new  york city
twin tower attack 2001 new york city
harishreemavs
 
Slide share PPT of NOx control technologies.pptx
Slide share PPT of  NOx control technologies.pptxSlide share PPT of  NOx control technologies.pptx
Slide share PPT of NOx control technologies.pptx
vvsasane
 
Computer Security Fundamentals Chapter 1
Computer Security Fundamentals Chapter 1Computer Security Fundamentals Chapter 1
Computer Security Fundamentals Chapter 1
remoteaimms
 
Redirects Unraveled: From Lost Links to Rickrolls
Redirects Unraveled: From Lost Links to RickrollsRedirects Unraveled: From Lost Links to Rickrolls
Redirects Unraveled: From Lost Links to Rickrolls
Kritika Garg
 
Novel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth ControlNovel Plug Flow Reactor with Recycle For Growth Control
Novel Plug Flow Reactor with Recycle For Growth Control
Chris Harding
 
SICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introductionSICPA: Fabien Keller - background introduction
SICPA: Fabien Keller - background introduction
fabienklr
 
Applications of Centroid in Structural Engineering
Applications of Centroid in Structural EngineeringApplications of Centroid in Structural Engineering
Applications of Centroid in Structural Engineering
suvrojyotihalder2006
 
最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制
最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制
最新版加拿大魁北克大学蒙特利尔分校毕业证(UQAM毕业证书)原版定制
Taqyea
 
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software ApplicationsJacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia - Excels In Optimizing Software Applications
Jacob Murphy Australia
 
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdfATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ATAL 6 Days Online FDP Scheme Document 2025-26.pdf
ssuserda39791
 
Surveying through global positioning system
Surveying through global positioning systemSurveying through global positioning system
Surveying through global positioning system
opneptune5
 
ZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JITZJIT: Building a Next Generation Ruby JIT
ZJIT: Building a Next Generation Ruby JIT
maximechevalierboisv1
 
Building-Services-Introduction-Notes.pdf
Building-Services-Introduction-Notes.pdfBuilding-Services-Introduction-Notes.pdf
Building-Services-Introduction-Notes.pdf
Lawrence Omai
 
Generative AI & Large Language Models Agents
Generative AI & Large Language Models AgentsGenerative AI & Large Language Models Agents
Generative AI & Large Language Models Agents
aasgharbee22seecs
 
Autodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User InterfaceAutodesk Fusion 2025 Tutorial: User Interface
Autodesk Fusion 2025 Tutorial: User Interface
Atif Razi
 
Slide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptxSlide share PPT of SOx control technologies.pptx
Slide share PPT of SOx control technologies.pptx
vvsasane
 
Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32Interfacing PMW3901 Optical Flow Sensor with ESP32
Interfacing PMW3901 Optical Flow Sensor with ESP32
CircuitDigest
 
Control Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptxControl Methods of Noise Pollutions.pptx
Control Methods of Noise Pollutions.pptx
vvsasane
 
Ad

gdg_workshop 5 on web development HTML & CSS

  • 1. CSS: Styling the Web Learn the foundation of web development Organised by: GDG-SRGI & Coding Club
  • 2. Harsh Agarwal Speaker (Web Dev Lead) Er. Aman Saluja Faculty Advisor
  • 3. Session 2 • CSS ADVANCE • DOUBTS
  • 4. Flex Container properties These properties are applied to the parent container (with display: flex or display: inline-flex). display: Values: flex, inline-flex Description: Establishes a flex container, enabling its children to become flex items. Flex Container
  • 7. Flex Container flex-direction: Values: row, row-reverse, column, column-reverse Description: Defines the direction of the main axis (horizontal or vertical). flex-wrap: Values: nowrap, wrap, wrap-reverse Description: Controls whether flex items should wrap onto multiple lines.
  • 12. Flex Container align-content: Values: stretch, flex-start, flex-end, center, space-between, space-around Description: Aligns rows when there's extra space on the cross axis (only works with wrapped content). gap, row-gap, column-gap: Values: Any length value (e.g., 10px, 1rem) Description: Adds spacing between flex items (gap applies to both rows and columns).
  • 23. Flex Item Properties These properties are applied to the child elements (flex items). order: Values: Any integer (default is 0) Description: Controls the order of the flex items. Items with lower values appear first. flex-grow: Values: Any non-negative number (default is 0) Description: Determines how much an item should grow relative to others when extra space is available.
  • 25. Flex Item Properties flex-shrink: Values: Any non-negative number (default is 1) Description: Determines how much an item should shrink relative to others when space is insufficient. flex-basis: Values: Any length or auto (default is auto) Description: Sets the initial size of an item before flex-grow or flex-shrink is applied.
  • 27. Flex Item Properties flex: Shorthand for flex-grow, flex-shrink, and flex-basis Values: none (0 0 auto), auto (1 1 auto), <flex-grow> <flex-shrink> <flex-basis> Description: A shorthand property for flexible sizing. align-self: Values: auto, flex-start, flex-end, center, baseline, stretch Description: Overrides align-items for individual flex items.