Complete the code to create a container with a max width and center it horizontally.
.container {
max-width: [1];
margin-left: auto;
margin-right: auto;
}The max-width property limits the container's width to 1200px, and margin-left: auto and margin-right: auto center it horizontally.
Complete the code to add horizontal padding inside the container for spacing.
.container {
padding-left: [1];
padding-right: [1];
}Using 1rem for padding adds consistent horizontal space inside the container, improving readability.
Fix the error in the wrapper class to make it a flex container that centers content vertically and horizontally.
.wrapper {
display: [1];
justify-content: center;
align-items: center;
}Setting display: flex makes the wrapper a flex container, enabling justify-content and align-items to center content both horizontally and vertically.
Fill both blanks to create a responsive wrapper that uses flexbox and wraps items to the next line if needed.
.wrapper {
display: [1];
flex-wrap: [2];
}Using display: flex enables flexbox layout, and flex-wrap: wrap allows items to move to the next line when they don't fit in one row.
Fill all three blanks to create a container with a max width, horizontal padding, and centered margin.
.container {
max-width: [1];
padding-left: [2];
margin: 0 [3];
}The container has a max width of 1200px, horizontal padding of 1rem for spacing inside, and horizontal margins set to auto to center it on the page.