How to split the value of a query column into two rows inside an anchor tag using coldfusion?

I have a cfquery loop, then I mapped a single query column value (text) to an anchor tag.

Example

<cfloop query="testQuery"> <a href="##">#testQuery.Title#</a> </cfloop> 

Suppose the variable testQuery.Title returns "Defines the explanation / pronunciation of characters (for an East Asian typography)" But I need to break the sentence for an example

"Defines the explanation / pronunciation of the characters (for East Asian typography)"

+5
source share
1 answer

Just put the link in the shell and set some width.

 <cfloop query="testQuery"> <div style="width:200px !important"><a href="##">#testQuery.Title#</a></div> </cfloop> 

Let me know if you have another problem / it does not work.

+2
source

Source: https://habr.com/ru/post/1205762/


All Articles