Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Code Puzzle: How to make a perfect grid on any screen. Reply To: Code Puzzle: How to make a perfect grid on any screen.

#175495
nixnerd
Participant

I’m assuming that viewport units are detectable with Modernizr or something similar.

Oh yeah… they are.

I think those units are so much easier to work with. I created some mixins that essentially abstracted the other method to this level of ease but damn… that’s so awesome.

Now, I just need to do the math to determine how many units each square will be based on the window size.