css Flashcards
flex-basis
- it indicates the initial size of item before extra space is distributed.
- it is often used in place of width in flex layout
- you can specify the value of flex basis in px,%,rem, by default it has the value of auto
- flex-grow and flex-shrink are applied on top of flex-basis
flex-flow
combination of flex-direction and flex-wrap
how to configure css grid so as to allow children to take width as per their content
grid-template-columns: min-content min-content 1fr
https://www.youtube.com/watch?v=KtSl4xg_6cQ
should we give padding to parents or margin to children
https://stackoverflow.com/questions/9917104/should-the-spacing-between-parent-and-child-containers-belong-to-parent-or-child
https://stackoverflow.com/questions/16880851/padding-on-parent-versus-margin-on-child
css gap property
.parent_class_name{
gap: 30px;
}
The above CSS code will apply a gap/separation of 30px between children of the parent_class_name class.
Flutter layout is very different from HTML layout
Constraints go down. Sizes go up. Positions are set by parents.
https://medium.com/flutter-community/flutter-the-advanced-layout-rule-even-beginners-must-know-edc9516d1a2
why should we use mui typography
using typography we can standardise all varieties of text
difference between inline-flex and display inline
https://stackoverflow.com/questions/72476024/difference-between-inline-flex-vs-inline