Question 1 of 30
A web developer is tasked with creating a responsive layout for a website that adjusts based on the screen size of the device being used. The developer decides to use CSS Flexbox to achieve this. If the developer sets the container\'s display property to `flex` and applies a `flex-direction` of `row`, how will the items within the container behave when the container\'s width is reduced to less than the total width of the items? Additionally, what CSS properties can be utilized to ensure that the items wrap onto the next line instead of overflowing the container?
The items will wrap onto the next line if the `flex-wrap` property is set to `wrap`.
The items will overflow the container and remain on a single line regardless of the container's width.
The items will stack vertically without any additional properties set.
The items will shrink to fit within the container without wrapping.

Preparing for Microsoft 98-383 Introduction to Programming Using HTML and CSS? Now land the interview.

73% of qualified candidates get rejected because of weak resumes. Build an ATS-optimized, recruiter-ready resume in under 5 minutes - free to start.

Build My Resume Free