Text Transformation (Capitalization)
The font-variant
property uses
capital letter shapes for lowercase letters, but doesn’t really affect the
capitalization of the text, only the character shapes of the font. There
is another CSS property, text-transform
, for altering the capitalization
of text without needing to retype it in the source document. It works by
toggling between the upper- and lowercase characters as specified.
Get Web Design in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.