.foo
text-transform lowercase
&:first-letter
text-transform uppercase
!important, it just works when the parent is a block or inline-block.
🦁
.foo
text-transform lowercase
&:first-letter
text-transform uppercase
!important, it just works when the parent is a block or inline-block.
🦁
@renatorib Exactly!
It's also good for drop caps :) https://css-tricks.com/snippets/css/drop-caps/
Thank you!
It's important to emphasize that if is only one word, you can just use
text-transform: capitalize;
(that capitalize first letter of all words)