in css what is the difference between font-variant:small-caps;
and text-transform:capitalize;
views:
174answers:
2Uppercase is text consisting of normal uppercase characters:
UPPERCASE
Small-caps is like so (taken from here):
Wikipedia article on Small caps
text-transform
is buggy in some browsers: See here.
For example:
In Internet Explorer for Windows versions up to and including 7, the values lowercase and uppercase behave like none if the font-variant property is set to small-caps.
if you use text-transform: capitalize
the word "stack overflow" will become "Stack Overflow", only the 1st letter of each word gets CAPS.
but if you use font-variant: small-caps
the 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.
and text-transform: uppercase
makes it all CAPS too but but the typeface stays the same size, so uppercase
typeface will be bigger that small-caps