Hi All,
I’m trying to figure out how to dynamically position objects without resorting to javascript and I’m stumped. Fixed position, fixed length, no problem but as soon as the lengths of divs becomes dynamic, I’m lost.
For reference, take a look at [URL=”http://www.thirdepoch.com”]www.thirdepoch.com
What I’m trying to do is dynamically position the divs on the page. If you look at the boxes in the middle, you’ll see there’s a large one, followed by two smaller ones, and that pattern is repeated. My problem is these boxes are generated on the fly so I don’t know their lengths before they’re drawn.
Clearly, the two smaller ones need to be drawn the same length, which adds another layer of complication.
I’m guessing a combination of position:relative and position:absolute is going to do the work, but can someone point me in the right direction please.
Note that the footer block is dynamically positioned using javascript to check the length of the left block (where the menu is) and the centre block. The problem with this method is that javascript can only extract the size of the innermost div.
Also note that I’ve also thought about abandoning divs and going back to a table structure but I don’t think that’s the way forward.
Any suggestion is, as always, much appreciated.
Thanks
CTB