Scenario:
You have a CMS where the user can determine what content will be displayed. Content consists of several columns with links below them. It looks something like this:
Column name
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
Column Name2
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
Column Name3
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
Column Name4
link1 link2 link3 link4
link5 link6 liiiiiiiiiiiiiiiiiink7
link8 liiiink9 liiiiiiink10
When this list is too long, the content will be divided into 2 columns. For the time being, the content will simply be shared → in mozilla using css3 and in IE using the jQuery library, in which something similar has been done.
CSS
.columns { -moz-column-count: 2; -moz-column-gap: 30px; -webkit-column-count: 2; -webkit-column-gap: 30px; column-count: 2; column-gap: 30px; } ### WEB FORM
As you can see, this is handled on the client side, and the effect of this is that the text will simply be split, without making sure that the columns are not just broken.
This is the effect:

So, now this problem has been solved on the client side, so the content will simply be split and broken into 2 columns. Is there a good way to solve this server side by having 2 good columns with some logic to determine that the columns are of similar height? How would you solve this problem?
source share