How to adjust font sizes, padding, margins on different devices using ionic2

Hi,

How to scale font sizes, padding, margins on different devices. I am facing font scaling issue in ionic 2, is any workaround to handle font size, padding, margin scale as per the device width & height.

Currently, We’ve used ‘px’ for the font size. Does this work for scaling using Ionic 2. Do we have to revert or utilize other methods such as ‘rem’ or ‘%’.

I believe your best approach here is to use media queries and em units.