Reply to Re: Simulating columns?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация