I have an HTML page which is completely generated from a Python file. I first created an HTML file and then basically printed everything again from the Python script. Don’t ask me why. It’s our instructor’s requirement. The weird problem is that the contents in the paragraph tags are breaking out of the container if they are too long. It didn’t happen in the HTML version though. I’ve inspected the source code using chrome, and everything seems to be fine.
Can anyone help me out here?
Here’s the link to it: http://www.luxuryparadise.co.nr/
This domain name is just a little effort to hide my school domain..
Search for “a” when you opened up the website, and click on the result. It will bring you to a stupid account page. And check on your right where it says recent messages. Click on the little “show more” link to see the problem I’m talking about.
Thanks!
That’s normal. Browsers won’t break a massively long ‘word’ to wrap it to the next line. If there were some spaces in that blob of text, the browser would split them there.
You can try forcing a word break with the CSS3 property:
Incidentally, this has nothing to do with Python. It’s purely a client-side display issue.