How does white-space impact inline elements?

  • It adjusts the line height of the text. 
  • It breaks the text into multiple lines. 
  • It determines how whitespace inside the element is handled. 
  • It adds space between words. 
The white-space CSS property determines how whitespace inside an element is treated. For inline elements, it can decide whether spaces, tabs, and newlines will collapse into a single space or if they will be preserved as typed. Options for this property include normal, nowrap, pre, pre-wrap, and pre-line. For example, using nowrap will prevent the text from wrapping to the next line. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *