View Full Version : Tiling dynamic tables
BerksWebGuy
5-16-02, 11:48 AM
I have a database that lists products. Right now, they can only list from left to right...which can add up to a lot of scrolling with 10-50 products. How can I have them tile to stay within the viewers browser...example...3 products to a line.
Since this is a database...the html is dynamically generated, so every product html has to be uniform. This is a problem when I want every fourth product to start another row.
Sorry if its confusing...any ideas??:confused:
sdbarker
5-16-02, 03:36 PM
I would suggest using Perl, and counting the items. when you hit the fourth one, throw at a </tr><tr> combo.
I've done this before.
-Scott
BerksWebGuy
5-22-02, 12:36 PM
Do you know what Perl program you used...or where you got it. I've been looking around and can't find a darn thing.
sdbarker
5-22-02, 02:35 PM
Well, perl is standard issue on most flavors of linux / unix these days (though freebsd just dropped it from the core package), and you can download a windows version from www.activestate.com
to edit my source, i use vim, http://vim.sf.net, an exceptionally powerful, and free text editor.
if you have any more questions, let me know.
-Scott
BerksWebGuy
5-22-02, 03:45 PM
I have a script writing program. But did you actually make the script by hand (an original)...or did you get the script from another site.
I can write a script...but rather just copy it from another.
Sorry for the confusion.
sdbarker
5-23-02, 08:19 AM
I write everything by hand. ;-)
-Scott
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.