I
I
Insolation2018-02-26 23:16:57
JavaScript
Insolation, 2018-02-26 23:16:57

How to create a matrix from DOM element?

Hi all gentlemen. I've been struggling with this problem for a few hours now. No idea will come to mind.
I have html + css - https://jsfiddle.net/662aww2e/
I need to create a matrix based on this type:

[
  [div.cell, div.cell, div.cell],
  [div.cell, div.cell, div.cell],
  [div.cell, div.cell, div.cell],
  [div.cell, div.cell, div.cell],
  [div.cell, div.cell, div.cell],
]

Is it possible to do so?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2018-02-26
@Insolation

like this?
https://jsfiddle.net/ka11s6m5/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question