Hi, I have a database table containing text information. I want to displayt
this information on a webpage but when I try to do so the text doesnt break as
soon as i want it to, so it looks something like this:
the inforamtion from my database is being displayed way too long. I want
it to break sooner.
instead of how i want it to be shown, like this:
the information from my database
is being displayed way too long I
want it to break sooner.
if anyone could help me with this I would really appreciate it. Thanks.
jdeline - 26 May 2006 12:50 GMT
You need to place your text into a table cell, and constrain the width of that
cell with the WIDTH attribute.
<TABLE>
<TR>
<!--- constrain to 300 pixels --->
<TD WIDTH="300">
#longText#
</TD>
</TR>
</TABLE>
Fernis - 29 May 2006 12:50 GMT
...And since we're not in the early 90's anymore, we kindly forget tables when
it comes to representing any data that is not in... errr... a table :-)
<style type="text/css">
.properwidth {width:300px}
</style>
<div class="properwidth">
#longtext#
</div>