Here again I start to write my learning journey, for the past 3 days we have been building FB clone page to learn new tags like input text, password, button. we placed then in page and wanted to make it centre. So we started learning Flex which allows us to move the elements flexibly from on place to another. We have explored the multiple possible options about this so that we can align and justify which is used to move in column and rows wise by default, but wen also changed the flex direction using flex-direction : column;
Also we started using <div> tag in order to make the multiple elements come into one box.
Within a div we need to make the elements look in a particular fashion which is done using padding and margin properties. Where padding is used to give space within the box content whereas margin gives outside the box content.
The alignment of the various elements which we give will always depend on the Style property which we give in the head tag.
Top comments (0)