![]() |
How do you format text output using CI ? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How do you format text output using CI ? (/showthread.php?tid=19184) |
How do you format text output using CI ? - El Forum - 05-30-2009 [eluser]JPrieto[/eluser] Hi again, i put together a simple image gallery site with CI in the foreach the description of the image displays fine but is there a way i can control how WIDE the chunk of text gets displayed so that is gets word-wrapped to the next line in other word, rather than having the web page display a very long sentence like this one, i would like for it to display as the following paragraph Code: in other word, rather than having the web page could that be possibly done with a simple CI statement or something? the text is retrieve from a database table field called "desc" which was declared as "text" with 200 characters in length thanks How do you format text output using CI ? - El Forum - 05-30-2009 [eluser]SpooF[/eluser] To do that your going to need to use html and css, set the width of what ever element its being contained in. You can do it via CI but it would be bad practice and complete the wrong way to do it. How do you format text output using CI ? - El Forum - 05-30-2009 [eluser]JPrieto[/eluser] thanks that was the answer i needed now i know thanks |