SlideShare a Scribd company logo
2
Most read
10
Most read
15
Most read
IN A ROCKET
Learn front-end development at rocket speed
CSS FLEXBOX & CSS GRID
ContainerItems&
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
CSS GRID

LAYOUT
FLEXIBLE BOX

LAYOUT
Single-axis–oriented. Optimized for 2-dimensional layouts.
Flexbox focuses on space distribution within an axis.
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
CSS GRID

LAYOUT
FLEXIBLE BOX

LAYOUT
Single-axis–oriented. Optimized for 2-dimensional layouts.
Flexbox focuses on space distribution within an axis.
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
FLEXBOX
Flex container
Flex

item
Flex

item
Flex

item
Any HTML element
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
Flex

container CAN BE
Block
Inline
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
display
flex

inline-flex
(default)
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
display
flex
inline-flex
(default)
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
Flex container
width = block (100%)
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
Content goes here.
Flex item
Flex container
Width and height defined by its content.
Content goes here.
Flex item
Even more content goes here.
Flex item
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
DISPLAY FLEX
<body>
<div class="container">
<div>Item1</div>
<div>Item2</div>
<div>Item3</div>
<div>Item4 here</div>
</div>
</body>
HTML CSS
.container {display: flex;}
Browser
Web page title
index.html
Item1 Item2 Item3 Item4 here container
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
DISPLAY FLEX
<body>
<ul class="container">
<li>Item1</li>
<li>Item2</li>
<li>Item3</li>
<li>Item4 here</li>
</ul>
</body>
HTML CSS
.container {display: flex;}
Browser
Web page title
index.html
Item1 Item2 Item3 containerItem4 here
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
display
flex

inline-flex
(default)
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
Flex container
width = inline
Other inline elements

could go here.
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
Content goes here. Content goes here. Even more content goes here.
Flex item
Flex container
Width and hight defined by its content.
Flex item Flex item
Other inline elements

could go here.
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
DISPLAY INLINE-FLEX
<body>
<div class="container">
<div>Item1</div>
<div>Item2</div>
<div>Item3</div>
<div>Item4 here</div>
</div>
</body>
HTML CSS
.container {display: inline-flex;}
Browser
Web page title
index.html
containerItem1 Item2 Item3 Item4 here
FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com
display
flex

inline-flex
(default)
Learn front-end development at rocket speed
inarocket.com
by miguelsanchez.com
YOU CAN CONTINUE THIS COURSE FOR FREE ON
+ READY TO USE CODE
+ QUIZZES
+ FREE UPDATES
We respect your time

No more blah blah videos. Just straight to
the point slides with relevant information.
Ready to use code

Real code you can just copy and paste into
your real projects.
Step by step guides

Clear and concise steps to build real use
solutions. No missed points.
Learn front-end development at rocket speed
inarocket.com
IN A ROCKET
Learn front-end development at rocket speed
CSS FLEXBOX & CSS GRID
ContainerItems&

More Related Content

Similar to 3- Learn Flexbox & CSS Grid / Container & items (20)

PDF
But what about old browsers?
Rachel Andrew
 
PDF
CSS3 Flexbox & Responsive Design
Arash Milani
 
PPTX
2D Page Layout
Unfold UI
 
PDF
The Future State of Layout
Stephen Hay
 
PPTX
CSS Walktrough Internship Course
Zoltan Iszlai
 
PPTX
INTRODUCTIONS OF CSS PART 2
SURYANARAYANBISWAL1
 
PPTX
CHAPTER 3_ Getting Started with CSS Module
ssusera4f8281
 
PPTX
cascading style sheet powerpoint notes.pptx
kcdiya58
 
PDF
Fewd week2 slides
William Myers
 
PDF
CSS For Backend Developers
10Clouds
 
PDF
The New CSS Layout - dotCSS
Rachel Andrew
 
PPTX
flexbox report
LearningTech
 
PDF
Ways to keep it fun with Hyva Themes, Alex Galdin - Pro Magento Meetup #10
Pro Magento Community
 
PDF
CSS3 Layout
Zoe Gillenwater
 
PPTX
Web technologies-course 04.pptx
Stefan Oprea
 
PDF
The New CSS Layout - Dutch PHP Conference
Rachel Andrew
 
PDF
CSS Flexbox and Grid Layouts
Anantha kumar
 
PPTX
CSS Flexbox (flexible box layout)
Woodridge Software
 
PDF
Start Using CSS Grid Layout Today - RuhrJS
Rachel Andrew
 
PDF
Flexbox and Grid Layout
Rachel Andrew
 
But what about old browsers?
Rachel Andrew
 
CSS3 Flexbox & Responsive Design
Arash Milani
 
2D Page Layout
Unfold UI
 
The Future State of Layout
Stephen Hay
 
CSS Walktrough Internship Course
Zoltan Iszlai
 
INTRODUCTIONS OF CSS PART 2
SURYANARAYANBISWAL1
 
CHAPTER 3_ Getting Started with CSS Module
ssusera4f8281
 
cascading style sheet powerpoint notes.pptx
kcdiya58
 
Fewd week2 slides
William Myers
 
CSS For Backend Developers
10Clouds
 
The New CSS Layout - dotCSS
Rachel Andrew
 
flexbox report
LearningTech
 
Ways to keep it fun with Hyva Themes, Alex Galdin - Pro Magento Meetup #10
Pro Magento Community
 
CSS3 Layout
Zoe Gillenwater
 
Web technologies-course 04.pptx
Stefan Oprea
 
The New CSS Layout - Dutch PHP Conference
Rachel Andrew
 
CSS Flexbox and Grid Layouts
Anantha kumar
 
CSS Flexbox (flexible box layout)
Woodridge Software
 
Start Using CSS Grid Layout Today - RuhrJS
Rachel Andrew
 
Flexbox and Grid Layout
Rachel Andrew
 

More from In a Rocket (14)

PDF
17- Learn CSS Fundamentals / Units
In a Rocket
 
PDF
16- Learn CSS Fundamentals / Background
In a Rocket
 
PDF
15- Learn CSS Fundamentals / Color
In a Rocket
 
PDF
14- Learn CSS Fundamentals / Inheritance
In a Rocket
 
PDF
13- Learn CSS Fundamentals / Specificity
In a Rocket
 
PDF
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
PDF
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
PDF
10- Learn CSS Fundamentals / Pseudo-elements
In a Rocket
 
PDF
9- Learn CSS Fundamentals / Pseudo-classes
In a Rocket
 
PDF
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
PDF
2- Learn HTML Fundamentals / Text Formatting
In a Rocket
 
PDF
1- Learn HTML Fundamentals / Start in 5 Minutes
In a Rocket
 
PDF
Learn SUIT: CSS Naming Convention
In a Rocket
 
PDF
Learn BEM: CSS Naming Convention
In a Rocket
 
17- Learn CSS Fundamentals / Units
In a Rocket
 
16- Learn CSS Fundamentals / Background
In a Rocket
 
15- Learn CSS Fundamentals / Color
In a Rocket
 
14- Learn CSS Fundamentals / Inheritance
In a Rocket
 
13- Learn CSS Fundamentals / Specificity
In a Rocket
 
12- Learn CSS Fundamentals / Mix & group
In a Rocket
 
11- Learn CSS Fundamentals / Combinators
In a Rocket
 
10- Learn CSS Fundamentals / Pseudo-elements
In a Rocket
 
9- Learn CSS Fundamentals / Pseudo-classes
In a Rocket
 
8- Learn CSS Fundamentals / Attribute selectors
In a Rocket
 
2- Learn HTML Fundamentals / Text Formatting
In a Rocket
 
1- Learn HTML Fundamentals / Start in 5 Minutes
In a Rocket
 
Learn SUIT: CSS Naming Convention
In a Rocket
 
Learn BEM: CSS Naming Convention
In a Rocket
 
Ad

Recently uploaded (20)

PPT
Almos Entirely Correct Mixing with Apps to Voting
gapati2964
 
PDF
ContextForge MCP Gateway - the missing proxy for AI Agents and Tools
Mihai Criveti
 
PPTX
The ARUBA Kind of new Proposal Umum .pptx
andiwarneri
 
PPTX
原版一样(ISM毕业证书)德国多特蒙德国际管理学院毕业证多少钱
taqyed
 
PDF
Beginning-Laravel-Build-Websites-with-Laravel-5.8-by-Sanjib-Sinha-z-lib.org.pdf
TagumLibuganonRiverB
 
PDF
I Want to join occult brotherhood for money ritual#((+2347089754903))
haragonoccult
 
PDF
BroadLink Cloud Service introduction.pdf
DevendraDwivdi1
 
PPTX
Lesson 1.1 Career-Opportunities-in-Ict.pptx
lizelgumadlas1
 
PPTX
原版一样(ANU毕业证书)澳洲澳大利亚国立大学毕业证在线购买
Taqyea
 
PPTX
My Mother At 66! (2).pptx00000000000000000000000000000
vedapattisiddharth
 
PDF
The Convergence of Threat Behaviors Across Intrusions
Joe Slowik
 
PPTX
BitRecover OST to PST Converter Software
antoniogosling01
 
PDF
Materi tentang From Digital Economy to Fintech.pdf
Abdul Hakim
 
PPTX
Class_4_Limbgvchgchgchgchgchgcjhgchgcnked_Lists.pptx
test123n
 
PDF
03 Internal Analysis Strategik Manajemen.pdf
AhmadRifaldhi
 
PDF
Google Chrome vs Other Browsers: Why Users Still Prefer It.pdf
hgfdsqetuiplmnvcz43
 
PDF
web application development company in bangalore.pdf
https://dkpractice.co.in/seo.html tech
 
PDF
What Is Google Chrome? Fast & Secure Web Browser Guide
hgfdsqetuiplmnvcz43
 
PDF
Clive Dickens RedTech Public Copy - Collaborate or Die
Clive Dickens
 
PDF
Slides: Eco Economic Epochs for The World Game (s) pdf
Steven McGee
 
Almos Entirely Correct Mixing with Apps to Voting
gapati2964
 
ContextForge MCP Gateway - the missing proxy for AI Agents and Tools
Mihai Criveti
 
The ARUBA Kind of new Proposal Umum .pptx
andiwarneri
 
原版一样(ISM毕业证书)德国多特蒙德国际管理学院毕业证多少钱
taqyed
 
Beginning-Laravel-Build-Websites-with-Laravel-5.8-by-Sanjib-Sinha-z-lib.org.pdf
TagumLibuganonRiverB
 
I Want to join occult brotherhood for money ritual#((+2347089754903))
haragonoccult
 
BroadLink Cloud Service introduction.pdf
DevendraDwivdi1
 
Lesson 1.1 Career-Opportunities-in-Ict.pptx
lizelgumadlas1
 
原版一样(ANU毕业证书)澳洲澳大利亚国立大学毕业证在线购买
Taqyea
 
My Mother At 66! (2).pptx00000000000000000000000000000
vedapattisiddharth
 
The Convergence of Threat Behaviors Across Intrusions
Joe Slowik
 
BitRecover OST to PST Converter Software
antoniogosling01
 
Materi tentang From Digital Economy to Fintech.pdf
Abdul Hakim
 
Class_4_Limbgvchgchgchgchgchgcjhgchgcnked_Lists.pptx
test123n
 
03 Internal Analysis Strategik Manajemen.pdf
AhmadRifaldhi
 
Google Chrome vs Other Browsers: Why Users Still Prefer It.pdf
hgfdsqetuiplmnvcz43
 
web application development company in bangalore.pdf
https://dkpractice.co.in/seo.html tech
 
What Is Google Chrome? Fast & Secure Web Browser Guide
hgfdsqetuiplmnvcz43
 
Clive Dickens RedTech Public Copy - Collaborate or Die
Clive Dickens
 
Slides: Eco Economic Epochs for The World Game (s) pdf
Steven McGee
 
Ad

3- Learn Flexbox & CSS Grid / Container & items

  • 1. IN A ROCKET Learn front-end development at rocket speed CSS FLEXBOX & CSS GRID ContainerItems&
  • 2. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com CSS GRID
 LAYOUT FLEXIBLE BOX
 LAYOUT Single-axis–oriented. Optimized for 2-dimensional layouts. Flexbox focuses on space distribution within an axis.
  • 3. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com CSS GRID
 LAYOUT FLEXIBLE BOX
 LAYOUT Single-axis–oriented. Optimized for 2-dimensional layouts. Flexbox focuses on space distribution within an axis.
  • 4. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com FLEXBOX Flex container Flex
 item Flex
 item Flex
 item Any HTML element
  • 5. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com Flex
 container CAN BE Block Inline
  • 6. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com display flex inline-flex (default)
  • 7. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com display flex inline-flex (default)
  • 8. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com Flex container width = block (100%)
  • 9. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com Content goes here. Flex item Flex container Width and height defined by its content. Content goes here. Flex item Even more content goes here. Flex item
  • 10. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com DISPLAY FLEX <body> <div class="container"> <div>Item1</div> <div>Item2</div> <div>Item3</div> <div>Item4 here</div> </div> </body> HTML CSS .container {display: flex;} Browser Web page title index.html Item1 Item2 Item3 Item4 here container
  • 11. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com DISPLAY FLEX <body> <ul class="container"> <li>Item1</li> <li>Item2</li> <li>Item3</li> <li>Item4 here</li> </ul> </body> HTML CSS .container {display: flex;} Browser Web page title index.html Item1 Item2 Item3 containerItem4 here
  • 12. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com display flex inline-flex (default)
  • 13. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com Flex container width = inline Other inline elements
 could go here.
  • 14. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com Content goes here. Content goes here. Even more content goes here. Flex item Flex container Width and hight defined by its content. Flex item Flex item Other inline elements
 could go here.
  • 15. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com DISPLAY INLINE-FLEX <body> <div class="container"> <div>Item1</div> <div>Item2</div> <div>Item3</div> <div>Item4 here</div> </div> </body> HTML CSS .container {display: inline-flex;} Browser Web page title index.html containerItem1 Item2 Item3 Item4 here
  • 16. FLEXBOX & CSS GRID: The CSS layout nightmare is over inarocket.com display flex inline-flex (default)
  • 17. Learn front-end development at rocket speed inarocket.com by miguelsanchez.com YOU CAN CONTINUE THIS COURSE FOR FREE ON + READY TO USE CODE + QUIZZES + FREE UPDATES
  • 18. We respect your time
 No more blah blah videos. Just straight to the point slides with relevant information. Ready to use code
 Real code you can just copy and paste into your real projects. Step by step guides
 Clear and concise steps to build real use solutions. No missed points. Learn front-end development at rocket speed inarocket.com
  • 19. IN A ROCKET Learn front-end development at rocket speed CSS FLEXBOX & CSS GRID ContainerItems&