I am trying to target the size of a number at the start of a word.
For example - I have the brand 4ever and want to resize the '4' to be the same size as the trailing text 'eva'
Is there a way to do this in CSS or do I need Javascript?
Thanks
I am trying to target the size of a number at the start of a word.
For example - I have the brand 4ever and want to resize the '4' to be the same size as the trailing text 'eva'
Is there a way to do this in CSS or do I need Javascript?
Thanks
you can try it with ::first-letter.
Check docs here: https://www.w3schools.com/cssref/sel_firstletter.asp
p::first-letter {
font-size: 200%;
color: #8A2BE2;
}