Re: [WebDNA] Styling search results [using css]
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 102381
interpreted = N
texte = Thanks Michael. Any idea how to do it without using tables - just CSS? Maybe this is one ofthose times to compromise, but I really need to avoid tables unless I amdisplaying tabular data.Thanks,-ChrisOn 4/9/09 10:52 AM, "Michael A. DeLorenzo"
wrote:> I use something like this frequently. I forgot if I wrote this code or if I> changed someone else's to work for my purpose. In any case, it works :)> > BTW...This is for 3 col output. Just change the number in the math var to> the number you need.> > > [search db=../dbs/member.db&neskudatarq=0&lastNamesort=1&lastNameType=text]> [math show=f]cols=ceil([numfound]/3)[/math]> [math show=f]offset=cols[/math]> > [loop start=1&end=[cols]]> [math show=f]offset=offset-1[/math]> [founditems]> [showif [math]([index]+[offset])\[cols][/math]=1]> | > [namePrefix] [firstName] [middleInitial][hideif [middleInitial]=].[/hideif]> [lastName] [namesuffix] [hideif [nickName]=]([nickName])[/hideif]> | > [/showif]> [/founditems]
> [/loop]>
[/search]> > > > Michael > > -----Original Message-----> From: cw@e-wave.net [mailto:cw@e-wave.net]> Sent: Thursday, April 09, 2009 1:17 PM> To: talk@webdna.us> Subject: [WebDNA] Styling search results> > So, my search works when I just list the results in a single column and the> CSS layout works with static data. But, what I need to do is to display 2> columns (or rows) of results, like this:> > 1 3> 2 4> > or:> > 1 2> 3 4> > Any suggestions are greatly appreciated.> > Thanks,> -Chris> --------------------------> > css:> > #box{> width:690px;> overflow:hidden;> }> #box li{> float:left;> width:350px;> overflow:hidden;> }> #box .col2{> width:340px;> }> #box li img{> float:left;> }> #box li .breif{> float:left;> width:230px;> }> > > code:> > > [search db=data.db]> [founditems]> -
> >
[data]
> > > -
> >
[data]
> > > [/founditems] > [/search] >
> > ###
Associated Messages, from the most recent to the oldest:
Thanks Michael. Any idea how to do it without using tables - just CSS? Maybe this is one ofthose times to compromise, but I really need to avoid tables unless I amdisplaying tabular data.Thanks,-ChrisOn 4/9/09 10:52 AM, "Michael A. DeLorenzo" wrote:> I use something like this frequently. I forgot if I wrote this code or if I> changed someone else's to work for my purpose. In any case, it works :)> > BTW...This is for 3 col output. Just change the number in the math var to> the number you need.> > > [search db=../dbs/member.db&neskudatarq=0&lastNamesort=1&lastNameType=text]> [math show=f]cols=ceil([numfound]/3)[/math]> [math show=f]offset=cols[/math]> > [loop start=1&end=[cols]]> [math show=f]offset=offset-1[/math]> [founditems]> [showif [math]([index]+[offset])\[cols][/math]=1]> | > [namePrefix] [firstName] [middleInitial][hideif [middleInitial]=].[/hideif]> [lastName] [namesuffix] [hideif [nickName]=]([nickName])[/hideif]> | > [/showif]> [/founditems]
> [/loop]>
[/search]> > > > Michael > > -----Original Message-----> From: cw@e-wave.net [mailto:cw@e-wave.net]> Sent: Thursday, April 09, 2009 1:17 PM> To: talk@webdna.us> Subject: [WebDNA] Styling search results> > So, my search works when I just list the results in a single column and the> CSS layout works with static data. But, what I need to do is to display 2> columns (or rows) of results, like this:> > 1 3> 2 4> > or:> > 1 2> 3 4> > Any suggestions are greatly appreciated.> > Thanks,> -Chris> --------------------------> > css:> > #box{> width:690px;> overflow:hidden;> }> #box li{> float:left;> width:350px;> overflow:hidden;> }> #box .col2{> width:340px;> }> #box li img{> float:left;> }> #box li .breif{> float:left;> width:230px;> }> > > code:> > > > ###
"cw@e-wave.net"
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
URGENT: WebCatalog 2.0 (1998)
I think WebDNA-Talk died ... :( (1997)
Help! WebCat2 bug (1997)
using showpage and showcart commands (1996)
[include] affect on filepaths for links? (1997)
charging? (2001)
SQLConnect to Oracle database (2004)
WebCat2 several catalogs? (1997)
Special delete ... (1997)
Flag checking (2000)
Secure Server not remembering discounts (1998)
[WebDNA] AutoFill Drop Down Menu (2009)
Re:Realtime Transaction Processing (1999)
ANother SHOWIF problem (1997)
[WebDNA] Integration with QuickBooks (2011)
Nesting format tags (1997)
WebCatalog for guestbook ? (1997)
Username for Admin Group (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
WebCat2 - [format thousands] (1997)