How to quickly convert from pixels to rem?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
19 views
The size of the blocks in the layout and font size, I always convert from pixels to rem, adaptive layout. Costing is a decent time, is it possible to do it faster?for example to connect some kind of script. For example, I specify all the sizes in px and it automatically translates into rem?
by | 19 views

4 Answers

0 like 0 dislike
by
0 like 0 dislike
M?
The preprocessors of the time.
by
0 like 0 dislike
There is a plugin for PostCSS postcss pxtorem.
by
0 like 0 dislike
Something is clearly wrong doing. If adaptive layout, then px should not have been anticipated or not everywhere. I do not understand where the need arose to translate px to rem? I typeset immediately or in px or in rem. What is the point in this extra step? Moreover, sometimes rem is not easy and need em, for example, or the same pixels. Write a script that would be stupid AutoCorrect to do (plus, multiply), but why? Although should be similar things for collectors type gulp: https://gulpjs.com/plugins/
by

Related questions

0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
asked Jun 9, 2019 by reyzele
0 like 0 dislike
1 answer
0 like 0 dislike
2 answers
asked May 11, 2019 by pontiac358
0 like 0 dislike
1 answer
110,608 questions
257,187 answers
0 comments
40,796 users