Complete the code to hide content that overflows the box.
div {
width: 10rem;
height: 5rem;
overflow: [1];
border: 1px solid black;
}The hidden value hides any content that goes outside the box.
Complete the code to add scrollbars only when needed.
div {
width: 12rem;
height: 6rem;
overflow: [1];
border: 1px solid gray;
}The auto value adds scrollbars only if content is too big.
Fix the error in the code to make overflow content scrollable.
section {
width: 15rem;
height: 7rem;
overflow: [1];
border: 2px solid blue;
}The scroll value always shows scrollbars to access overflow content.
Fill both blanks to create a box that clips overflow and adds vertical scroll only.
div {
width: 14rem;
height: 8rem;
overflow-x: [1];
overflow-y: [2];
border: 1px solid black;
}Setting overflow-x to hidden clips horizontal overflow.
Setting overflow-y to scroll always shows vertical scrollbars.
Fill all three blanks to create a scrollable box with clipped horizontal overflow and automatic vertical scroll.
section {
width: 16rem;
height: 9rem;
overflow: [1];
overflow-x: [2];
overflow-y: [3];
border: 2px solid green;
}Set overflow-x to hidden to clip horizontal overflow.
Set overflow-y to auto to add vertical scrollbars only if needed.
Setting overflow to visible is overridden by the axis-specific properties but included here for completeness.