{"id":22053,"date":"2013-06-17T09:27:27","date_gmt":"2013-06-17T16:27:27","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=22053"},"modified":"2022-05-31T07:12:09","modified_gmt":"2022-05-31T14:12:09","slug":"font-variant","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/f\/font-variant\/","title":{"rendered":"font-variant"},"content":{"rendered":"\n

The font-variant<\/code> property allows you to change the targeted text to small caps. This property has been extended in CSS3.<\/p>\n\n\n\n

p:first-line {\n  font-variant: small-caps; \/* default is `normal` *\/\n}<\/code><\/pre>\n\n\n\n

Before CSS3, this property accepted one of two possible values: normal<\/code> (how text is rendered by default) and small-caps<\/code>.<\/p>\n\n\n\n

A value of small-caps<\/code> will render the text in uppercase letters that are smaller than regular uppercase letters. This does not override uppercasing set in the content, inside the markup. For example:<\/p>\n\n\n\n