Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capitalize all letters with first one bigger

Tags:

css

what's the most efficient way to do this in CSS??? Basically it looks like this: {F}IRST {L}ETTER, where the letters in the braces are a little bigger than the other ones but they all the letters are uppercase.

Any suggestions?

like image 968
Grave Stones Yardson Avatar asked Jan 28 '23 12:01

Grave Stones Yardson


1 Answers

Use font-variant property of CSS

h1 {
  font-variant: small-caps;
}
<h1>Main Heading</h1>
like image 146
Yousaf Avatar answered Jan 31 '23 09:01

Yousaf