Files
Randell Dawson 1494a50123 fix(guide): restructure curriculum guide articles (#36501)
* fix: restructure certifications guide articles
* fix: added 3 dashes line before prob expl
* fix: added 3 dashes line before hints
* fix: added 3 dashes line before solutions
2019-07-24 13:29:27 +05:30

453 B

title
title
Use the flex Shorthand Property

Use the flex Shorthand Property


Problem Explanation

While you can set flex-grow, flex-shrink, and flex-basis properties individually. if you ever need to see the values for all of them you can do it in one line using the following format flex: flex-grow flex-shrink flex-basis;.

Example:

#box-1 {
    background-color: dodgerblue;
    flex: 2 2 150px;
    height: 200px;
  }