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)

Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Structural Response of Reinforced Self-Compacting Concrete Deep Beam Using Fi...
Journal of Soft Computing in Civil Engineering
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
The Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLabThe Gaussian Process Modeling Module in UQLab
The Gaussian Process Modeling Module in UQLab
Journal of Soft Computing in Civil Engineering
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Process Parameter Optimization for Minimizing Springback in Cold Drawing Proc...
Journal of Soft Computing in Civil Engineering
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
Introduction to FLUID MECHANICS & KINEMATICS
Introduction to FLUID MECHANICS &  KINEMATICSIntroduction to FLUID MECHANICS &  KINEMATICS
Introduction to FLUID MECHANICS & KINEMATICS
narayanaswamygdas
 
International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)International Journal of Distributed and Parallel systems (IJDPS)
International Journal of Distributed and Parallel systems (IJDPS)
samueljackson3773
 
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptxLidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
Lidar for Autonomous Driving, LiDAR Mapping for Driverless Cars.pptx
RishavKumar530754
 
15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...15th International Conference on Computer Science, Engineering and Applicatio...
15th International Conference on Computer Science, Engineering and Applicatio...
IJCSES Journal
 
Introduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptxIntroduction to Zoomlion Earthmoving.pptx
Introduction to Zoomlion Earthmoving.pptx
AS1920
 
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
211421893-M-Tech-CIVIL-Structural-Engineering-pdf.pdf
inmishra17121973
 
IntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdfIntroSlides-April-BuildWithAI-VertexAI.pdf
IntroSlides-April-BuildWithAI-VertexAI.pdf
Luiz Carneiro
 
Metal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistryMetal alkyne complexes.pptx in chemistry
Metal alkyne complexes.pptx in chemistry
mee23nu
 
railway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forgingrailway wheels, descaling after reheating and before forging
railway wheels, descaling after reheating and before forging
Javad Kadkhodapour
 
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G..."Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
"Feed Water Heaters in Thermal Power Plants: Types, Working, and Efficiency G...
Infopitaara
 
Artificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptxArtificial Intelligence (AI) basics.pptx
Artificial Intelligence (AI) basics.pptx
aditichinar
 
Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.Fort night presentation new0903 pdf.pdf.
Fort night presentation new0903 pdf.pdf.
anuragmk56
 
Compiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptxCompiler Design Unit1 PPT Phases of Compiler.pptx
Compiler Design Unit1 PPT Phases of Compiler.pptx
RushaliDeshmukh2
 
Data Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptxData Structures_Searching and Sorting.pptx
Data Structures_Searching and Sorting.pptx
RushaliDeshmukh2
 
Smart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptxSmart_Storage_Systems_Production_Engineering.pptx
Smart_Storage_Systems_Production_Engineering.pptx
rushikeshnavghare94
 
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdfMAQUINARIA MINAS CEMA 6th Edition (1).pdf
MAQUINARIA MINAS CEMA 6th Edition (1).pdf
ssuser562df4
 
Data Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptxData Structures_Introduction to algorithms.pptx
Data Structures_Introduction to algorithms.pptx
RushaliDeshmukh2
 
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.