Are you ready?
1 questions to solve.
Instructions
- This quiz goes to full-screen once you press the Start button.
- At the end of the quiz, you are able to review all the questions that you answered wrong and see their explanations.
How can we hide any overflowing content within an element?
Refer to the CSS Overflows for more info.
Can
overflow: auto
work on elements without any rules for width and height? If yes, then when can this happen?When a word exceeds the bounds of an element, it will overflow past it and by default CSS won't break the word. In such cases
overflow: auto
will add a scrollbar to scroll to see the overflowing content.In an element, how can we make the horizontally overflowing content automatically scrollable and the vertically overflowing content hidden?
To configure x and y overflows separately we can either use the
overflow
property with two parameters or the properties overflow-x
and overflow-y
. Refer to CSS Overflows for more info.In the following div how can you break the overflowing word to fit into the container?
Refer to CSS Wrapping for more info.
Can we expect the following element to be vertically scrollable by the CSS code shown below? If not, then give a reason.
If a custom height is not defined then the element will keep on extending in this dimension to fit the overflowing content. Content in it will simply never overflow and hence the CSS rule won't get into action.