Answer the question
In order to leave comments, you need to log in
Is it possible to apply styles only to numbers, without wrapping numbers in a tag?
Hello!
In a react application, a string is passed from an object
const obj = { data: ' 100 порций 5 мышей в подарок заказчик доволен' }
and rendered in the child component. const obj = { data: '<b>100</b> порций, <b>5</b> мышей в подарок заказчик доволен' }
Answer the question
In order to leave comments, you need to log in
Mess with the font.
This is how you can apply a different font only to numeric characters
@font-face {
font-family: 'drevodel_regular';
url('fonts/drevodel_regular.woff2') format('woff2'),
url('fonts/drevodel_regular.woff') format('woff'),
font-weight: normal;
font-style: normal;
unicode-range: U+30-39;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question