CSS Course Hindi - Beginner to Pro ( 2023 ) | Chapter 4
Notes
Display
Display properties are used to change behaviour of tags
you can change block tag like
<h1>
to inline element <span>
example
<h1 style=”display:inline;”> </h1>
⇒ Now <h1>
will be inline act as </span>
tagdisplay:block;

display:inline;

display:inline-block;

display:flex;

display:inline-flex;

display:grid;

display:inline-grid;

display:table;

display:list-item;

Flex
CSS Flexible Box Layout is a module of css that defines a CSS box model optimised for user interface design, and the layout of items in one dimension.
Flex Direction
flex-direction is used to change direction either
Column - wise ⇒ Vertical →
flex-direction:column;
or
Row-wise ⇒ Horizontal ( default ) →
flex-direction:row;

Order:
if you want to change orders of children then
you will have to use order property inside child elements → order: 1
if you will apply
order : 1 ;
in any child element it will come first in parent element

Flex Grow :
After applying flex-grow property to child element
element will take full width
see 2nd element in figure
Flex Shrink acts just opposite to Flex Grow

Flex Wrap :
in this flex property element auto adjust according to container
element are pushed into new row
if you want to change this behaviour then you can use flex-flow: column;

Justify content:
justify-content & algin-items is property which we use very regularly in flex





images credited - https://css-tricks.com/snippets/css/a-guide-to-flexbox/
Exercises
CSS Course / Tutorials in Hindi 2023 - CSS 2023 | CSS Tutorials in Hindi Chapter 4 Learn CSS by doing practice question. Chapters: 00:00 4.1 Chapter Intro 00:46 4.2 Display 13:27 4.3 Flex 33:26 4.4 Problems 40:24 4.5 Solution - Problem 1 48:30 4.6 Solution - Problem 2 01:04:47 4.7 Solution - Problem 3 01:16:10 4.8 Solution - Problem 4 Notion Notes - https://alkaline-olivine-4e5.notion.site/Chapter-4-fc544d7040a2412cb0beca5acf222b8b Github Repo - https://github.com/anshuopinion/CSS-Course Linkedin - https://linkedin.com/in/anshuopinion Telegram Channel - https://telegram.me/dosomecodinghelp Instagram - https://instagram.com/dosomecoding Github - https://github.com/anshuopinion