Many thanks for the inspiring methods :)
Wonder if would be possible to make the 16 in $remValue: ($value / 16) + rem; dynamic, say some var --baseline defined at :root? The scenario is 16 can change based on @media query of CSS.
16
$remValue: ($value / 16) + rem;
--baseline
:root
@media query
Regards :) Riting
Hey, i have the same question. What happen if the 1rem is equal to 32px? That value depends on the user's browser settings.
In that cases the function don't work properly
I'm interested in the reply to Esneyder110's question. Anybody?
To me it sounds like we should divide px by user's value.
Thanks
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Many thanks for the inspiring methods :)
Wonder if would be possible to make the
16in$remValue: ($value / 16) + rem;dynamic, say some var--baselinedefined at:root? The scenario is16can change based on@media queryof CSS.Regards :)
Riting
Hey, i have the same question.
What happen if the 1rem is equal to 32px?
That value depends on the user's browser settings.
In that cases the function don't work properly
I'm interested in the reply to Esneyder110's question.
Anybody?
To me it sounds like we should divide px by user's value.
Thanks