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
• 7,940 points
19 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
• 8,820 points

Related Questions In CSS

0 votes
0 answers
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
• 8,820 points
21 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
• 8,820 points
12 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
• 8,820 points
9 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,476 views
0 votes
1 answer

Using/Handling colon inside a JSF generated HTML element ID in CSS selector

Yes, you can.  Just Backslash (\) the colon.  Like ...READ MORE

answered Nov 14, 2018 in Others by DataKing99
• 8,240 points
1,652 views
0 votes
1 answer

What is a css selector and where is it used?

CSS Selector is a combination of element ...READ MORE

answered Nov 21, 2018 in Data Analytics by Kalgi
• 52,350 points
267 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
• 8,820 points
8 views
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
• 8,820 points
29 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