Airbnb Project
Airbnb Project
Airbnb Project
WELCOME TO
ERROR MAKES CLEVER
ACADEMY
INTRODUCTION TO FLEX CONTAINER
WHAT IS FLEX?
Flexbox, or the Flexible Box
Layout, is a layout model in CSS
(Cascading Style Sheets). The
main goal of flexbox is to make
the container adjust its items'
width and height to fill the
available space in the best possible
way on different screen sizes and
devices.
DISPLAY:FLEX
<div class="one" style="display: flex;">
<h1>One</h1>
<h1>Two</h1>
<h1>Three</h1>
</div>
DISPLAY:FLEX
FLEX CONTAINER
FLEX ITEMS
MAIN AXIS VS CROSS AXIS
In flexbox:
flex-direction: column
• wrap
• no-wrap
EXERCISE:2
JUSTIFY CONTENT
center, flex-start,space-between
Align Items
Align-items is a CSS property used in flex containers to define
how flex items are aligned along the cross axis, which is
perpendicular to the main axis.
Justify + Align Exercise
Flex Basis
transform: transform-funct i on ;
<h ead>
<meta ch ar s et ="UTF - 8 ">
<meta n ame="v i ewp o r t " co n t en t ="wi d t h =d ev i ce- wi d t h , i n i t i al - s cal e=1 .0 ">
<t itle>Ai r b n b </ t i t l e>
<l ink r el ="p r eco n n ect " h r ef ="h t t p s: / / fo n t s.g o o g l eap i s .co m">
<l ink r el ="p r eco n n ect " h r ef ="h t t p s: / / fo n t s.g s t at i c.co m" cr o ss o r i g i n >
<l ink h r ef="h t t p s : / / f o n t s.g o o g l eap i s.co m/ css 2 ?f ami l y =P o p p i n s&d i sp l ay =s wap " r el ="s t y l esh eet ">
<l ink r el ="s t y l esh eet " h r ef ="h t t p s: / / cd n j s .cl o u d f l ar e.co m/ aj ax / l i b s/ f o n t -awes o me/ 6 .4 .0 / cs s/ al l .mi n .cs s">
<b o dy >
</ bo d y >