in css what is the difference between font-variant:small-caps; and text-transform:capitalize;
in css what is the difference between font-variant:small-caps; and text-transform:capitalize;
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
if you use
text-transform: capitalizethe word “stack overflow” will become “Stack Overflow”, only the 1st letter of each word gets CAPS.but if you use
font-variant: small-capsthe word “stack overflow” becomes “STACK OVERFLOW” but the height of the type-face will match the height of the lowercase letters before the CSS style was applied. so all CAPS but smaller. (Sᴛᴀᴄᴋ Oᴠᴇʀғʟᴏᴡ)and
text-transform: uppercasemakes it all CAPS too but but the typeface stays the same size, souppercasetypeface will be bigger thatsmall-caps