0

I am developing a widget for mobile web - that contains several elements, like images icons and texts.

I am looking for a way to assure all stay in the same size when screen is in focus.

is there a way to tell have 20px icon have the same relative size on every zoom in?

briler
  • 520
  • 6
  • 21

1 Answers1

0

You could use window.onresize, recalculate the target elements dimensions when the window dimensions change JavaScript window resize event

Community
  • 1
  • 1
Patrick
  • 48
  • 5