SlideShare une entreprise Scribd logo
1  sur  25
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
1
Understanding
Flexbox
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
2
Mark Aplet
 @visual28
 markaplet@symsoftsolutions.com
Front-End Web Developer at SymSoft Solution
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
3
FlexboxLayout
 Main Idea: allow the container to alter it’s items height
width and order of appearance for better responsive
layouts
 Direction Agnostic
 Spotty support since 2009
 Candidate Recommendation since 2012
 Requires vendor prefix even in modern browsers
 Polyfill support not so great
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
4
FlexboxModule
Main Size
CrossSize
CrossAxis
Main Axis
Cross Start
Cross End
Main Start Main End
1 2
Flex Item
Flex Container
Flex Item
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
5
FlexContainer
 display: block
 display: inline
 display: inline-block
.container {
display: flex; /* inline-flex */
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
6
FlexDirection
 Determines the axis orientation
 Defaults to row
 row, row-reverse, column,
column-reverse
.container {
flex-direction: row;
}
1 2 3
1
2
3
3
2
1
3 2 1
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
7
FlexWrap
 Tries to fit on one line by default
 Defaults to nowrap
 nowrap | wrap | wrap-reverse
.container {
flex-wrap: wrap;
}
1
3
2
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
8
FlexFlow
 This is a shorthand flex-direction and flex-wrap properties,
which together define the flex container's main axis and
cross axes. Default is row nowrap
.container {
flex-flow: row-reverse wrap;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
9
JustifyContent
 Defines the alignment along the main axis
 Helps distribute remaining free space around items
 Defaults to flex-start
 flex-start, flex-end, center,
space-between, space-around
.container {
Justify-content: flex-start;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
10
JustifyContent
1 32flex-start
1 32flex-end
1 32center
1 32space-between
1 32space-around
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
11
JustifyContent
1 32space-around
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
12
AlignItems
 Defines the alignment along the cross axis
• Vertical alignment
 Think of it as justify-content for the cross axis
 Defaults to flex-start
 flex-start, flex-end, center, baseline, stretch
.container {
align-items: flex-start;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
13
AlignItems
1 2 3 4
flex-start
1
2 3 4
flex-end
1 2 3 4center 1 2 3 4stretch
baseline
text text text text
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
14
AlignContent
 Defines the distribution of space along the cross axis
 Similar to justify-content for the cross axis
 Defaults to flex-start
 flex-start, flex-end, center, baseline, stretch
.container {
align-content: flex-start;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
15
FlexItems
 Children elements of flex-container
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
16
Order
 Controls the order items appear in the flex-container
 Use source order by default
 Default value is 0
 Can use negative values e.g. -1
.item {
order: 1;
}
2 1 34
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
17
FlexGrow
 Defines the ability for a flex item to grow if necessary
 Unitless value that represents a proportion
 Dictates amount of space it should take up
 Defaults to 0
.item {
flex-grow: 1;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
18
FlexGrow
.item:nth-child(2) {
flex-grow: 2;
}
1 1 1
1 2 1
.item {
flex-grow: 1;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
19
FlexShrink
 Defines the ability for a flex item to shrink
if necessary
 Unitless value that represents a proportion
 Defaults to 0
.item {
flex-shrink: 1;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
20
FlexBasis
 This defines the default size of an element before the
remaining space is distributed
 If set to 0, the extra space around content isn't factored in
 If set to auto, the extra space is distributed based on it's
flex-grow value
.item {
flex-basis: auto;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
21
FlexBasis
short much longer short
All Space Distributed
(flex-basis:0)
1 1
short much longer short
Extra Space Distributed
(flex-basis:auto)
1 1 1 1 2 2
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
22
Flex
 Shorthand for flex-grow, flex-shrink and flex-basis
combined
 Recommended over setting individual properties
 Uses typical shorthand notaion
.item {
flex: 1 1 auto;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
23
Flex
/* 0 0 auto */
flex: none;
/* One value, unitless number: flex-grow */
flex: 2;
/* Two values: flex-grow | flex-basis */
flex: 1 30px;
/* Two values: flex-grow | flex-shrink */
flex: 2 2;
/* Three values: flex-grow | flex-shrink | flex-basis */
flex: 2 2 10%;
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
24
AlignSelf
 Allows for individual items to be overridden
.item {
flex-align: flex-start;
}
1 2
3
4
flex-start
flex-end
.item:nth-child(3) {
align-self: flex-end;
}
4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com
25
LiveDemo

Contenu connexe

En vedette

Std réno bâti parisien3 web
Std réno bâti parisien3 webStd réno bâti parisien3 web
Std réno bâti parisien3 web
Hugues Delcourt
 
xercices de révision Français A1 (élève B)
xercices de révision Français A1 (élève B)xercices de révision Français A1 (élève B)
xercices de révision Français A1 (élève B)
cblanc2
 

En vedette (15)

MILD JET S2
MILD JET S2MILD JET S2
MILD JET S2
 
Hydrobolt pdf Brochure
Hydrobolt pdf BrochureHydrobolt pdf Brochure
Hydrobolt pdf Brochure
 
Presentación venta zapper
Presentación venta zapperPresentación venta zapper
Presentación venta zapper
 
Std réno bâti parisien3 web
Std réno bâti parisien3 webStd réno bâti parisien3 web
Std réno bâti parisien3 web
 
Jornal Balada da União nº328- Abril / Maio 2015
Jornal Balada da União  nº328- Abril / Maio 2015Jornal Balada da União  nº328- Abril / Maio 2015
Jornal Balada da União nº328- Abril / Maio 2015
 
Perspectivas wellcomm de la comunicación 2012
Perspectivas wellcomm de la comunicación 2012  Perspectivas wellcomm de la comunicación 2012
Perspectivas wellcomm de la comunicación 2012
 
Many Hats at Cloudera
Many Hats at ClouderaMany Hats at Cloudera
Many Hats at Cloudera
 
Smartphones, tablets e curiosidades
Smartphones, tablets e curiosidadesSmartphones, tablets e curiosidades
Smartphones, tablets e curiosidades
 
xercices de révision Français A1 (élève B)
xercices de révision Français A1 (élève B)xercices de révision Français A1 (élève B)
xercices de révision Français A1 (élève B)
 
Typography on the Web
Typography on the WebTypography on the Web
Typography on the Web
 
Creta Maris Convention Centre in Crete Greece
Creta Maris Convention Centre in Crete GreeceCreta Maris Convention Centre in Crete Greece
Creta Maris Convention Centre in Crete Greece
 
Denunciar defender la web
Denunciar  defender la webDenunciar  defender la web
Denunciar defender la web
 
The VLE at GSA for new students
The VLE at GSA for new studentsThe VLE at GSA for new students
The VLE at GSA for new students
 
Erfolg Ausgabe Nr. 1/2 2016
Erfolg Ausgabe Nr. 1/2 2016Erfolg Ausgabe Nr. 1/2 2016
Erfolg Ausgabe Nr. 1/2 2016
 
Morfologia I
Morfologia IMorfologia I
Morfologia I
 

Dernier

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Dernier (20)

Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 

Exploring Flexbox

  • 1. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 1 Understanding Flexbox
  • 2. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 2 Mark Aplet  @visual28  markaplet@symsoftsolutions.com Front-End Web Developer at SymSoft Solution
  • 3. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 3 FlexboxLayout  Main Idea: allow the container to alter it’s items height width and order of appearance for better responsive layouts  Direction Agnostic  Spotty support since 2009  Candidate Recommendation since 2012  Requires vendor prefix even in modern browsers  Polyfill support not so great
  • 4. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 4 FlexboxModule Main Size CrossSize CrossAxis Main Axis Cross Start Cross End Main Start Main End 1 2 Flex Item Flex Container Flex Item
  • 5. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 5 FlexContainer  display: block  display: inline  display: inline-block .container { display: flex; /* inline-flex */ }
  • 6. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 6 FlexDirection  Determines the axis orientation  Defaults to row  row, row-reverse, column, column-reverse .container { flex-direction: row; } 1 2 3 1 2 3 3 2 1 3 2 1
  • 7. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 7 FlexWrap  Tries to fit on one line by default  Defaults to nowrap  nowrap | wrap | wrap-reverse .container { flex-wrap: wrap; } 1 3 2
  • 8. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 8 FlexFlow  This is a shorthand flex-direction and flex-wrap properties, which together define the flex container's main axis and cross axes. Default is row nowrap .container { flex-flow: row-reverse wrap; }
  • 9. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 9 JustifyContent  Defines the alignment along the main axis  Helps distribute remaining free space around items  Defaults to flex-start  flex-start, flex-end, center, space-between, space-around .container { Justify-content: flex-start; }
  • 10. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 10 JustifyContent 1 32flex-start 1 32flex-end 1 32center 1 32space-between 1 32space-around
  • 11. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 11 JustifyContent 1 32space-around
  • 12. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 12 AlignItems  Defines the alignment along the cross axis • Vertical alignment  Think of it as justify-content for the cross axis  Defaults to flex-start  flex-start, flex-end, center, baseline, stretch .container { align-items: flex-start; }
  • 13. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 13 AlignItems 1 2 3 4 flex-start 1 2 3 4 flex-end 1 2 3 4center 1 2 3 4stretch baseline text text text text
  • 14. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 14 AlignContent  Defines the distribution of space along the cross axis  Similar to justify-content for the cross axis  Defaults to flex-start  flex-start, flex-end, center, baseline, stretch .container { align-content: flex-start; }
  • 15. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 15 FlexItems  Children elements of flex-container
  • 16. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 16 Order  Controls the order items appear in the flex-container  Use source order by default  Default value is 0  Can use negative values e.g. -1 .item { order: 1; } 2 1 34
  • 17. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 17 FlexGrow  Defines the ability for a flex item to grow if necessary  Unitless value that represents a proportion  Dictates amount of space it should take up  Defaults to 0 .item { flex-grow: 1; }
  • 18. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 18 FlexGrow .item:nth-child(2) { flex-grow: 2; } 1 1 1 1 2 1 .item { flex-grow: 1; }
  • 19. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 19 FlexShrink  Defines the ability for a flex item to shrink if necessary  Unitless value that represents a proportion  Defaults to 0 .item { flex-shrink: 1; }
  • 20. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 20 FlexBasis  This defines the default size of an element before the remaining space is distributed  If set to 0, the extra space around content isn't factored in  If set to auto, the extra space is distributed based on it's flex-grow value .item { flex-basis: auto; }
  • 21. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 21 FlexBasis short much longer short All Space Distributed (flex-basis:0) 1 1 short much longer short Extra Space Distributed (flex-basis:auto) 1 1 1 1 2 2
  • 22. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 22 Flex  Shorthand for flex-grow, flex-shrink and flex-basis combined  Recommended over setting individual properties  Uses typical shorthand notaion .item { flex: 1 1 auto; }
  • 23. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 23 Flex /* 0 0 auto */ flex: none; /* One value, unitless number: flex-grow */ flex: 2; /* Two values: flex-grow | flex-basis */ flex: 1 30px; /* Two values: flex-grow | flex-shrink */ flex: 2 2; /* Three values: flex-grow | flex-shrink | flex-basis */ flex: 2 2 10%;
  • 24. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 24 AlignSelf  Allows for individual items to be overridden .item { flex-align: flex-start; } 1 2 3 4 flex-start flex-end .item:nth-child(3) { align-self: flex-end; }
  • 25. 4090 Truxel Road, Suite 200 • Sacramento, CA 95834 • Phone: (916) 567-1740 • Fax: (916) 290-9067 • symsoftsolutions.com 25 LiveDemo