I'm developing a website where I have a <div>
(fixed size) and I'm adding small <div>
through JavaScript with appendChild()
.
The fact is that I can not do what I want, my idea is that they are added as follows:
----------------------------------------------
| | | |
| 1º | 5º | 9º |
| | | |
----------------------------------------------
| | | |
| 2º | 6º | 10º |
| | | |
----------------------------------------------
| | | |
| 3º | 7º | 11º |
| | | |
----------------------------------------------
| | | |
| 4º | 8º | 12º |
| | | |
----------------------------------------------
As such, I will create columns of 4 rows.
Let's see if anyone can help me out.
Thanks in advance!