+ 5
Why is my html output a paragraph in a single line
<p>a bunch of code</p> when I run this code in the browser the paragraph is a single line forcing me to scroll left and right.
4 Answers
+ 2
p {
word-wrap: normal;
}
^You could do that to enact word-wrap. Also, consider the container that this paragraph is inside of; what is its width? overflow property? etc... All things to consider.
+ 2
thanks
+ 2
You're welcome. In case you didn't see my immediate edit of my original post, consider what container your paragraph is inside of. It's parent needs to have appropriate width set to it, as well as overflow properties.
+ 2
thank you very much