Complete the code to hide overflow content in a box.
div {
overflow: [1];
width: 10rem;
height: 5rem;
border: 1px solid black;
}The hidden value hides any content that goes outside the box.
Complete the code to add scrollbars when content overflows.
div {
overflow: [1];
width: 8rem;
height: 4rem;
border: 1px solid black;
}The scroll value always shows scrollbars, allowing scrolling.
Fix the error in the code to show scrollbars only when needed.
div {
overflow: [1];
width: 12rem;
height: 6rem;
border: 1px solid black;
}The auto value shows scrollbars only if the content is bigger than the box.
Fill both blanks to hide horizontal overflow but allow vertical scrolling.
div {
overflow-x: [1];
overflow-y: [2];
width: 10rem;
height: 5rem;
border: 1px solid black;
}Setting overflow-x to hidden hides horizontal overflow.
Setting overflow-y to auto shows vertical scrollbars only if needed.
Fill all three blanks to always show horizontal scrollbars, show vertical scrollbars only when needed.
div {
overflow: [3];
overflow-x: [1];
overflow-y: [2];
width: 15rem;
height: 7rem;
border: 1px solid black;
}overflow: visible; first sets both directions to visible.overflow-x: scroll; always shows horizontal scrollbars.overflow-y: auto; shows vertical scrollbars only if needed.