Forums

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

Home Forums Other Responsive sprites / How to calculate percentage of position Reply To: Responsive sprites / How to calculate percentage of position

#165633
erickb
Participant

I do it with a sprites.svg file
if you have 20 icons –> background-size: CALC(20 * 100%); = 2000%

background-position:-200% 0;
background-position:-1200% 0;
……..