Answer the question
In order to leave comments, you need to log in
How to replace a number using regular expressions?
There are styles, you need to divide all values in rem by 10, for example
.btn{
height: 40rem;
border-radius: 20rem;
font-size: 18rem;
font-weight: 500;
text-decoration: none;
padding: 0 25rem;
}
.btn{
height: 4rem;
border-radius: 2rem;
font-size: 1.8rem;
font-weight: 500;
text-decoration: none;
padding: 0 2.5rem;
}
Answer the question
In order to leave comments, you need to log in
Regular expressions can find and replace text, but they cannot divide.
so you have to script. for example, so .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question