In CSS Flexbox, which property is used on the container to align items horizontally?
- justify-content
- align-items
- flex-align
- flex-container
The correct option is justify-content. This property is used to align items along the main axis (horizontally in a row layout) in a flex container.
Loading...
Related Quiz
- To address accessibility concerns, alternative text for icon fonts can be provided using the ________ attribute.
- The ________ property in CSS is used to specify the vertical alignment of inline or table-cell elements.
- In the BEM methodology, how is a modifier typically represented in a class name?
- You're designing a photo gallery using a grid layout. Each row should display three images. The middle image in each row should be twice as large as the images on its sides. How would you achieve this?
- When using Styled Components in a React application, what is the primary method for passing dynamic values to styles?