What is the purpose of the CSS property display: flex;?
- Defines a block-level container
- Defines a flexible container
- Defines a positioned container
- Defines an inline container
The 'flex' property is used to create a flexible container that expands or shrinks items to fill the available space.
Loading...
Related Quiz
- SCSS functions can be used to perform ________ before the CSS is compiled.
- You're working on a navigation menu where each list item should be displayed side by side. How would you achieve this using CSS?
- To create a shadow that does not blur or spread beyond the text itself, set the box-shadow ________ and ________ values to zero.
- In Flexbox, the flex-________ property allows an item to grow or shrink to fit the space available in the flex container.
- How would you define a custom property (or variable) in CSS?