Micro.blog

jessepelley
jessepelley

I'm still geeking out that I had to use a modulus for the first time while building my photo grid the other day. Please understand that I'm just learning here 😅

if ($i % 3 == 0) {
//with $i representing a numbered photo, if $i divided by 3 is exactly 0 then start a new row of photos!
}