Home > Software engineering >  Is it possible to get the gridColumnStart of empty cells in CSS Grid?
Is it possible to get the gridColumnStart of empty cells in CSS Grid?

Time:12-27

So I need to be able to drag the images and drop them into an empty grid cell, however I can't seem to get the cell position at all. I understand I could use a table for this but the data is dynamic so it needs to be filled by column from left to right hence using display grid for it.

I'm essentially trying to recreate how a PC desktop acts when dragging and dropping items such as folders or images. enter image description here

  • Related