css Flashcards

1
Q

flex-basis

A
  • 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

flex-flow

A

combination of flex-direction and flex-wrap

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

how to configure css grid so as to allow children to take width as per their content

A

grid-template-columns: min-content min-content 1fr
https://www.youtube.com/watch?v=KtSl4xg_6cQ

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

should we give padding to parents or margin to children

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

css gap property

A

.parent_class_name{
gap: 30px;
}
The above CSS code will apply a gap/separation of 30px between children of the parent_class_name class.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Flutter layout is very different from HTML layout

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

why should we use mui typography

A

using typography we can standardise all varieties of text

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

difference between inline-flex and display inline

A

https://stackoverflow.com/questions/72476024/difference-between-inline-flex-vs-inline

How well did you know this?
1
Not at all
2
3
4
5
Perfectly