Answer the question
In order to leave comments, you need to log in
Is it possible to use rem like this? How do you make responsive websites?
I've been practicing layout for some time now, while I'm making pages and sites just for myself.
For adaptability (Rubber + media query) I decided to choose rem, as I considered it a convenient solution. So that the calculation of sizes does not cause difficulties, he prescribed the following:
html {
font-size: 62.5%; /* 10px */
}
Answer the question
In order to leave comments, you need to log in
I use percentages for blocks. For fonts, I'm not too lazy to register once for tablets a smaller size through media
For the main unit I use rem, but depending on the situation I use%, vh, vw, em, px. Why rem? Try to scale the page (ctrl + "+") which are laid out by rem.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question