Home › Forums › CSS › alternating image layout, overlapping space › Reply To: alternating image layout, overlapping space
June 8, 2016 at 7:11 am
#242670
janga
Participant
Javascript is out of my league, but after sleeping over it yet another night, I found a solution; prehistoric measures to the rescue !
What I did is I created two image with the background color, and used these to fill in the gaps on both side, and then just a margin on the images. As long as the images combined have the same pixel count on both side, it fits like a dream, and scales down perfectly too.