Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The method to wrap the content of a div when a paragraph spans across two lines is to use the CSS property called "word-wrap" with the value of "break-word". This will allow the text to break at any point within a word in order to fit within the width of the containing div.

For example:

div {
  width: 200px;
  word-wrap: break-word;
}