Closed Thread Icon

Preserved Topic: Table (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=7831" title="Pages that link to Preserved Topic: Table (Page 1 of 1)" rel="nofollow" >Preserved Topic: Table <span class="small">(Page 1 of 1)</span>\

 
Osaires
Paranoid (IV) Inmate

From: oslo, Norway
Insane since: Aug 2001

posted posted 09-11-2001 15:35

this is the problem, when i have a table with width set to 50% and message is longer then 50% with no space
like this
<table width="50%>
<tr><td>kaljsdlkaskdfhasdhsdshfasdfasdfhasdjfhaklsdfkljahlsdfkjashdflkjashdflkasdhflkjasdfhlkasdfhsdløkasdflasdjlfjkasdjfjasdjlfjløkasdjfajølsd</td></tr>
</table>

the table wont change line, do you know what i can do with this problem?

lallous
Paranoid (IV) Inmate

From: Lebanon
Insane since: May 2001

posted posted 09-11-2001 15:47

This won't work unless you put a space between your string or you put <br>....as long as it's one long string the browser can't break it into different lines.

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-11-2001 23:29

Osaires, that's how web browsers work, they will treat that as one long word and therefore wont't break it (they will extend table width instead).

So, you should either put spaces or if content that's shown in that table is pulled by some server side script, you can write a function that will automatically wrap text at specified width...

Osaires
Paranoid (IV) Inmate

From: oslo, Norway
Insane since: Aug 2001

posted posted 09-11-2001 23:36

Yes this is right max, it a server side script, how do you write this cind of function, i use PHP as server language




[This message has been edited by Osaires (edited 09-11-2001).]

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted posted 09-11-2001 23:41

You should use PHP's wordwrap() function. I have explained how it works in this topic: http://www.ozoneasylum.com/Forum12/HTML/000311.html

« BackwardsOnwards »

Show Forum Drop Down Menu