FlashKeepers

Web Development · College · College and University

CSS II: Flexbox and Grid

Flexbox and CSS Grid properties, alignment, positioning, z-index, stacking contexts and common layout patterns.

About this set

40 basic cards for College Web Development. Set 2 of 3 in CSS. It opens with "What does display:flex do?" and "What is the main axis in flexbox?". Study it alongside the other College sets below.

40 cards · basic cards · AI-written, checked twice. Edit anything.

Study this set free Look inside first Get FlashKeepers for iPhone

Opens in your browser, no account. Get the iPhone and iPad app · Android app

What does display:flex do?
Show answerCreates a flex container; direct children become flex items
What is the main axis in flexbox?
Show answerThe primary axis along which flex items are laid out; horizontal by default
What is the cross axis in flexbox?
Show answerThe axis perpendicular to the main axis; vertical by default
What values does flex-direction accept?
Show answerrow, column, row-reverse, column-reverse
What does justify-content align in flexbox?
Show answerFlex items along the main axis
What does align-items align in flexbox?
Show answerFlex items along the cross axis
What does flex-wrap control?
Show answerWhether flex items wrap to new lines or shrink to fit on one line
What does flex-grow control?
Show answerHow much a flex item grows relative to siblings; default is 0
What does flex-shrink control?
Show answerHow much a flex item shrinks relative to siblings; default is 1
What does flex-basis set?
Show answerThe default size of a flex item before free space is distributed
What is the flex shorthand property?
Show answerShorthand for flex-grow flex-shrink flex-basis; e.g., flex: 1 1 200px
What does gap do in flexbox?
Show answerAdds uniform space between flex items, not at the edges
What does align-self do in flexbox?
Show answerOverrides align-items for a single flex item
What does display:grid do?
Show answerCreates a grid container; direct children become grid items
What does grid-template-columns define?
Show answerThe sizes and number of column tracks in a grid

25 more cards in the app

Study this set free