To ensure that a block of text doesn't wrap to the next line, you would set the white-space property to ________.
- break-word
- no-wrap
- nowrap
- wrap
To prevent a block of text from wrapping to the next line, you would set the white-space property to nowrap. This property prevents text from breaking at spaces or hyphens, keeping it on a single line.
Loading...
Related Quiz
- Which CSS unit is relative to the root element's font size?
- Which CSS property is used to vertically align inline elements or inline-block elements?
- In a media query, which feature is commonly used to detect the width of the viewport?
- In responsive design, what does the term "mobile-first" approach mean?
- If you have two conflicting CSS rules that point to the same element, how does CSS determine which one to apply?