Hi
I have a web page in coldfusion which shows contents from a SQL table. The contents are iterated using cfloop and are rendered using a div block. My code snippet follows-
<cfloop query="qry1">
<div class="subBlock">
<div class="item"><h4>Date:</h4><p>#qry1.date#</p></div>
<div class="item"><h4>Name:</h4><p>#qry1.name#</p></div>
<div class="item"><h4>Address:</h4><p>#qry1.address#</p></div>
</div>
</cfloop>
What gets shown on the page looks like-
Date:
06/01/2009 03:40 PM
Name:
XYZ ABC
Address:
ZZZ St.
So the problem is that I'm getting those line breaks. Whereas what I want is something like this-
Date:06/01/2009 03:40 PM
Name:XYZ ABC
Address:ZZZ St.
I'm using a similar div at another page and it is shown correctly there. The only differene here is that I'm using div tag inside cfloop tag.
Please let me know where I'm going wrong.
cheers