Posted by Jonathan N. Little on 11/04/07 02:53
dorayme wrote:
> In article <Xns99DDA01D8AFBFarbpenyahoocom@69.28.186.121>,
> Adrienne Boswell <arbpen@yahoo.com> wrote:
>
>> Gazing into my crystal ball I observed Ciaran <cronoklee@hotmail.com>
>> writing in news:1194092263.454782.316970@y42g2000hsy.googlegroups.com:
>>
>>> Hi,
>>> I have a very long dynamically generated bulleted list and I'd like to
>>> make it display in columns rather than down the left and side of the
>>> page. I know columns aren't available till CSS 3 but I was wondering
>>> if there's some current cross browser trick or hack that might work
>>> for me?
>>>
>>> Cheers
>>> Ciarán
>>>
>> Server side - get the total items and divide by two. Then loop through and
>> when you reach that amount, end the list and start another. Float the ul
>> element.
>
> When you reach what amount?
>
I think dorayme is right here, server-side would have no idea what
available size with respect to the browser. I think it would require
some nasty JavaScript to calculate the available space and reposition
the contents. And of course would also have to hook the onresize to do
the process all over again if the user resizes the browser... yuck!
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|