Welcome Guest, Not a member yet? Register   Sign In
How do you format text output using CI ?
#1

[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
display a very long sentence like this one, i
would like for it to display as the following
paragraph

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
#2

[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.
#3

[eluser]JPrieto[/eluser]
thanks that was the answer i needed
now i know

thanks




Theme © iAndrew 2016 - Forum software by © MyBB