Basically I have a webpage that is displaying a description for a client of a case.
What is happening is this description then gets displayed within a paragraph tag but it is placing everything on one line. Normally this occurs when you have a paragraph tag but the string is too long and it overflows, but this isn't the case here.
Example.
This is how the description shows in the webpage.
Description
hjkhjkhj sfgsdfgsdfghjkfjkfghjfghjfgh hjkgh jhkfghjkghjkgh jhkghjkg fjghjfghjfghjfghj fghdfhd fghfgdhfghdfghd x x x ^^^^^^
When I go into the DOM explorer and look at the
tag itself this is what it shows me.
<p>hjkhjkhj
sfgsdfgsdfghjkfjkfghjfghjfgh
hjkgh
jhkfghjkghjkgh
jhkghjkg
fjghjfghjfghjfghj
fghdfhd
fghfgdhfghdfghd
x
x x
^^^^^^</p>
It is showing the line breaks where they are supposed to occur, but this doesn't translate to the webpage itself.
Just wondering if anyone has come across this before? Or if anyone knows some CSS that will get around this problem.
`. Extra Whitespace in HTML is ignored – epascarello Nov 10 '16 at 15:01
` instead? – Sam W Nov 10 '16 at 15:02