Ok, I think I worked out my own solution. If anyone sees and problems
with this working when adding more items to the list please let me
know. So far it is working great!
var total_artists = $('#artistsColumns p').length;
var total_artists_mod = total_artists % 3;
var to
Sure Jack, I would be happy to give it a try. Let me know what I need
to do.
On Mar 3, 5:24 pm, Jack Killpatrick wrote:
> Nic, I've got an almost-completed "listcols". If you'd like to give it a
> try, let me know and I'll get you a pre-release copy. It splits a list
> (UL, OL or any child node
Nic, I've got an almost-completed "listcols". If you'd like to give it a
try, let me know and I'll get you a pre-release copy. It splits a list
(UL, OL or any child nodes) into evenly balanced columns using the
actual height of the list items. It also has options for how many cols
and how wid
Would it be a better idea to use the .slice() function rather than
what I have? Couldn't I just use the same math function to calculate
the number of items in each column?
On Mar 3, 11:59 am, Nic Hubbard wrote:
> I understand now, and I appreciate your help.
>
> A new problem has arisen from th
I understand now, and I appreciate your help.
A new problem has arisen from this. It seems that this loops through
elements grouped in 3, rather than apply the class for the first
column first, then the second one.
Here is what I mean. Say I have 9 p tags containing links. This is
how the scr
On Tue, Mar 3, 2009 at 1:48 PM, Nic Hubbard wrote:
>
> Should I keep the division by 10 on the Math function?
No, as i said, that's the problem. There's not only no need for it,
but it's giving you results you don't want. Quick: what's zero divided
by ten? And what's the remainder of that result
Should I keep the division by 10 on the Math function?
On Mar 3, 10:08 am, brian wrote:
> The division by 10 is your problem. Try:
>
> $(this).addClass(classNames[(i + 3) % 3]);
>
> On Tue, Mar 3, 2009 at 2:21 AM, Nic Hubbard wrote:
>
> > I have a list of names wrapped in tags that are sorted
The division by 10 is your problem. Try:
$(this).addClass(classNames[(i + 3) % 3]);
On Tue, Mar 3, 2009 at 2:21 AM, Nic Hubbard wrote:
>
> I have a list of names wrapped in tags that are sorted in
> alphabetical order. I am trying to build 3 even columns out of
> these. There are 63 items,
8 matches
Mail list logo