Hi, I am trying to create a dynamic list of links to go in the footer on my website but i have been unable to find a good solution.

I am currently using a standard unordered list with a repeating region which is then split into columns using the column-count attribute. This however distributes the links evenly between the columns.

What I am aiming for is a list that only creates a new column when the previous column reaches a specific amount e.g 6 links per column max. I'm not sure the column-count route would work how i want and i was thinking javascript or PHP might be more appropriate but i'm not sure how i could accomplish it.

Anyone got any ideas of how i could implement this?

Could you not give the column a set height? This will give any new links exceeding the height start in a new column.

Regards, Arkinder

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.