Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / May 2006



Tip: Looking for answers? Try searching our database.

Text information being displayed too long.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
WOLFcfm - 26 May 2006 09:24 GMT
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>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.