Simplified:

<div>
<cfloop index="i" from="1" to="#qTest.recordCount#" step="2">
#qTest.field[i]#<br/>
</cfloop>
</div>
<div>
<cfloop index="i" from="2" to="#qTest.recordCount#" step="2">
#qTest.field[i]#<br/>
</cfloop>
</div>

Pascal
> -----Original Message-----
> From: Marco Antonio C. Santos [mailto:[EMAIL PROTECTED]
> Sent: 09 August 2004 16:22
> To: CF-Talk
> Subject: Re: Output in 2 columns
>
> Thanx dc, but our CSS style works fine... our problem is how to output
> using CF that news...
>
> How to "divide" that news in 2 columns, like this:
>
>
> Column 1                        Column 2
> news 1                              news 4
> news 2                              news 5
> news 3                              news 6
>
>
> Thanx
>
> On Mon, 9 Aug 2004 15:05:16 +0100, [EMAIL PROTECTED]
> <[EMAIL PROTECTED]> wrote:
> > >> how to output my 10 news in 2 columns(CSS div style)?
> >
> > If I'm understanding you right.... the basics are:
> >
> > <style type="text/css">
> >    #news-left { float: left; }
> >    #news-right {float: right; }
> > </style>
> >
> > <div id="news">
> >    <div id="news-left">
> >        News 1<br />
> >        News 2<br />
> >        News 3<br />
> >        News 4<br />
> >    </div>
> >
> >    <div id="news-right">
> >        News 5<br />
> >        News 6<br />
> >        News 7<br />
> >        News 8<br />
> >    </div>
> > </div>
> >
> > Cheers
> >
> > --
> > dc
> >
> >
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to