What am I missing?
]]>tags to enclose the text retrieved from my SQL database. Then I had a new problem because the text wasn’t formatted with the proper font. Then I tried inline styling with style=”white-space: pre”. Then I had a new problem because the text wouldn’t wrap. FINALLY, I found your blog and tried style=”white-space: pre-wrap”, which saved my life. Thanks for your simple tutorial/explanation.
]]>white-space: pre
is showing a blank line both before and after the text. However, when I try doing this I am only seeing an empty line above the text.
<div>
A bunch of words you see.
</div>
div {
width: 100px;
border: 1px dotted red;
white-space: pre;
}
Here is my fiddle: https://jsfiddle.net/2wm7v5pc/
]]>asdasdasdasdf
]]>wefrgthyjuk
]]>I’m having the same problem with IE. white-space: pre-wrap does not work in IE9. Not sure about other IE versions. Works fine in Chrome. Any ideas how to get it to work in IE???
]]>Could this be a behavior specific to only textareas?
]]>I’m not geeky so please help. I’m using wordpress. When I press SPACEBAR twice after a fullstop, the second or (nth) row in a paragraph is being indented and not lining up to the left. This only happens when I press SPACEBAR twice (after previous sentence) towards the end of the previous line where the text is forced to wrap onto second line. Am I missing something from my CSS sheet?
]]>