0

I'm trying to find out how I can force elements to start from the top going to the bottom.

I have searched through Stack Overflow and I can't seem to get the answer that i need. Below I explain:

Actual:

A--B--C--D

E--F--G--H

What I need:

A--C--E--G

B--D--F--H
halfer
  • 19,824
  • 17
  • 99
  • 186
yancha
  • 27
  • 3

1 Answers1

2

This might not work in older browsers but you can use CSS property column-count like this:

ul {
  -moz-column-count: 4;
  -webkit-column-count: 4;
  column-count: 4;
}

Example: jsfiddle.

jfrej
  • 4,548
  • 29
  • 36