flexbox
play

FLEXBOX la y ou t conten t dynamicall y WHAT IS FLEXBOX? Flexbox is - PowerPoint PPT Presentation

CS 498RK SPRING 2019 FLEXBOX la y ou t conten t dynamicall y WHAT IS FLEXBOX? Flexbox is a layout model which aims to make it easier to lay out and align elements dynamically. Main Idea: Containers have the ability to adjust their content


  1. CS 498RK SPRING 2019 FLEXBOX la y ou t conten t dynamicall y

  2. WHAT IS FLEXBOX? Flexbox is a layout model which aims to make it easier to lay out and align elements dynamically. Main Idea: Containers have the ability to adjust their content dynamically. Flexbox is direction-agnostic : can accommodate both horizontal and vertical layouts.

  3. TERMINOLOGY https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  4. Containe r /Paren t Prope r tie s

  5. DISPLAY .container { diplay: flex; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  6. FLEX-DIRECTION .container { flex-direction: row | row-reverse | column | column-reverse; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  7. FLEX-WRAP .container { flex-wrap: nowrap | wrap | wrap-reverse; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  8. FLEX-FLOW .container { flex-flow: <flex-direction> || <flex-wrap>; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  9. JUSTIFY-CONTENT .container { justify-content: flex-start | flex-end | center | space-between | space-around | space-evenly; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  10. ALIGN-ITEMS .container { align-items: stretch | flex-start | flex-end | center | baseline; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  11. ALIGN-CONTENT .container { align-content: flex-start | flex-end | center | stretch | space-between | space-around; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  12. Ite m /Chil d Prope r tie s

  13. ORDER .item { order: <integer>; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  14. FLEX-GROW/SHRINK/BASIS .item { flex-grow: <integer>; flex-shrink: <integer>; flex-basis: <length> | auto; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  15. FLEX .item { flex: none | [ <flex-grow> <flex-shrink>? || <flex-basis> ]; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  16. ALIGN-SELF .container { align-self: auto | flex-start | flex-end | center | baseline | stretch; } https:/ /css-tricks.com/snippets/css/a-guide-to- fl exbox/

  17. RESOURCES https://css-tricks.com/snippets/css/a-guide-to- flexbox/ https://developer.mozilla.org/en-US/docs/Learn/ CSS/CSS_layout/Flexbox https://flexboxfroggy.com/

Recommend


More recommend