Forum Moderators: coopster

Message Too Old, No Replies

dynamic grid

No idea where to start.

         

supermanjnk

4:18 pm on Jan 16, 2006 (gmt 0)

10+ Year Member



I'm attempting to make a dynamic grid (3 x 3, so 9 squares total) I'm currently using a table because I don't feel like dealing with some css issues i was having in IE.

Anyway what i have is a 3 x 3 square
(periods used for spacing)

1 ¦ 2 ¦ 3
---------
4 ¦ 5 ¦ 6
---------
7 ¦ 8 ¦ 9

What I want to do is figure out a way to make it so that depending on certain information given I can make it whatever I want, for instance I may want it to look like this

1 ¦ 2 ¦
------¦ 3
4 ¦ 5 ¦
---------
7 ¦ 8 ¦ 9

or

. . 1 . .
---------
. ¦ 5 ¦ 6
4 ¦------
. ¦ 7 ¦ 8

Has anyone done something like this before? or have any ideas to help me get started, I'm hiting a block.

jamie

4:34 pm on Jan 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi supermanjnk

you could use the modulus operator % for displaying tables and columns. search for 'php tables modulus operator'.

hth

timster

4:37 pm on Jan 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can I ask, is this grid a tool for laying out the web page, or is it a graph that's on the page?

supermanjnk

4:44 pm on Jan 16, 2006 (gmt 0)

10+ Year Member



design.

if you know a better way let me know.

supermanjnk

5:41 pm on Feb 3, 2006 (gmt 0)

10+ Year Member



Just thought I would let you all know that I got this working.