small-caps font in css handles numbers as capital letters

0 votes

I'm working on a website and wanted to use the tiny capitals font variant. The issue is that whenever I have a number in a sentence, it is regarded as a capital letter and is larger than the remainder of the phrase.

So, what do I do now? Is there anything I need alter in font-variant-numeric?

font-family: Montserrat;
font-style: normal;
font-variant: small-caps;
font-variant-numeric: normal;
May 27 in CSS by Edureka
• 9,760 points
62 views

1 answer to this question.

0 votes
Because numbers are not letters, they do not have a capital letter and do not have a small-caps letter.
If you really must have numerals the same size as small capitals, you must do so manually and with various text sizes.
answered May 28 by Edureka
• 9,540 points

Related Questions In CSS

0 votes
1 answer

How to set Bullet colors in UL/LI html lists via CSS without using any images or span tags

I use jQuery for this: jQuery('li').wrapInner('<span class="li_content" />'); & ...READ MORE

answered May 27 in CSS by Edureka
• 9,540 points
41 views
0 votes
1 answer

nbsp not working in CSS content tag

May be this could be the solution ...READ MORE

answered May 28 in CSS by Edureka
• 9,540 points
31 views
0 votes
1 answer

What does !important mean in CSS?

The CSS! important rule is used to ...READ MORE

answered Jun 1 in CSS by Edureka
• 9,540 points
18 views
0 votes
1 answer

Color names allowed in HTML/CSS

Aqua, black, blue, fuchsia, grey, green, lime, ...READ MORE

answered Jun 1 in CSS by Edureka
• 9,540 points
12 views
0 votes
1 answer

how to use font awesome icons in HTML

First, you have to write this in ...READ MORE

answered 4 days ago in HTML by Deepak
• 660 points
12 views
0 votes
0 answers

how to use font awesome icons in HTML?

Hello, I'm having trouble using Font Awesome ...READ MORE

3 days ago in HTML by Tejashwini
• 1,660 points
7 views
0 votes
2 answers

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

HI.. SQL is Structured Query Language, which is ...READ MORE

answered Aug 8, 2020 in PHP by anonymous
4,697 views
0 votes
1 answer

How can I define colors as variables in CSS?

CSS does not use variables. You can, ...READ MORE

answered Jun 21 in CSS by Edureka
• 9,540 points
17 views
0 votes
1 answer

I want to create a small square colour filled box in HTML & CSS. And most important - I want to write one line after the box

Try using the square html entity: <div style="color:blue">&a ...READ MORE

answered Jun 28 in CSS by Edureka
• 9,540 points
27 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP