You are here: Re: Simulating columns? « HTML « IT news, forums, messages
Re: Simulating columns?

Posted by Adrienne Boswell on 11/03/07 23:37

Gazing into my crystal ball I observed dorayme
<doraymeRidThis@optusnet.com.au> writing in
news:doraymeRidThis-079A31.10290604112007@news-vip.optusnet.com.au:

> 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?
>

For example, say there are 20 items in a table. Run the query, get the
recordset, and the count of items in the recordset. Put the recordset
into an array. Close the record set.

total_items = 20
breaknow = total_items/2

loop though the array until you reach breaknow then end the list and
start another. If the total is not an even number, then the last list
will have one extra item.


--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 

Navigation:

[Reply to this 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация