Latest solutions
Latest comments
- @abhishek-baliyan-dev@Kashyxp-patel
It's ok to give a font-size in your code but it'll be way better if you use the em or rem units instead of pixel units. Because if some one has changed their default font-size in browser to something else and in your code the font-size uses the pixel unit it'll over-ride their settings and hence won't be a good user experience for them. The 'em' and 'rem' units will dynamically adjust the font size according to the users default font size. (The default font size in browser is 16px..). (https://www.youtube.com/watch?v=fzZTvLmmTzM) this YouTube video helped me in understanding this.
Marked as helpful