Answer the question
In order to leave comments, you need to log in
Font-size formula?
body {
font-size: 1.4rem;
}
@media only screen and (max-width: 1300px) {
body {
font-size: 1.3333333333333333rem;
}
}
@media only screen and (max-width: 1200px) {
body {
font-size: 1.2727272727272725rem;
}
}
@media (max-width: 1024px) and (min-width: 768px) {
body {
font-size: 1.4rem;
}
}
p {
font-size: 1.6rem;
}
@media only screen and (max-width: 1300px) {
p {
font-size: 1.5238095238095237rem;
}
}
@media only screen and (max-width: 1200px) {
p {
font-size: 1.4545454545454546rem;
}
}
Answer the question
In order to leave comments, you need to log in
sass, less and other technologies that generate css, they may have calculations such as division, as a result, not integers.
By the way, if you still write css manually - I highly recommend it. And gulp with them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question