Wrapped in a <pre> element, line breaks are rendered in the browser and the use of <br/> tags is not necessary. Is it possible to achieve the same effect by applying CSS to a <div> element?
Wrapped in a <pre> element, line breaks are rendered in the browser and the
Share
The CSS property
will achieve this for you. Note that there are other similar values for this property which may be a better solution for your need, so check out the documentation.
Ref: CSS2, CSS3