I got a JS script (not coded by me) which loads the tweets from twitter and insert the tweet after some seconds into the page. The problem is, that if you click on "show quellcode" in your browser the text is NOT displayed in the normal html & css stuff you get from the browser.
The text is displayed after ~ 2 seconds and even if I define the width of the div container the text is inside the text does not breaks after the defined width but just is in 1 line until infinity :-(
If you need some code please tell me which part - (the text-displaying part?) I dont know much of JS but just use sometime some ready scripts of other developer - I only code PHP, JAVA, C++ :-/
THanks in advance if someone replys and try to help me =/
post the link to have a look.
here is the link:
at the nearly-bottom there are the tweets (displayed after some seconds) which are overflowed.
Create, Share, and Debug HTML pages and snippets with a cool new web app I helped create: pagedemos.com
THanks for the reply.
Originally Posted by rnd me
The only thing I could find in google under "pre wrap" was:
but there was no change =(
http://officerulz.com.au (here is the script @ lastest tweets
<pre width="xx">js text</pre>
whitewhite-space: pre-wrap; /* css-3 */
whitewhite-space: -pre-wrap; /* Opera 4-6 */
whitewhite-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5+ */
whitewhite-space: -moz-pre-wrap; /* Older Versions of Mozilla */
I found (with some help of someone else) the problem:
In the css for the <ul> was "whitespace:no-wrap" thus it didn't breaks lines :-/
THanks for the replys!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)