I'm using materialized css to design my personal website. when I use the button, its caption is always shown in capital letters. I tried to change it but failed to do so. can anyone help me out with this, please?
Asked
Active
Viewed 2.6k times
12
-
You could simply over-ride the CSS style responsible for the UPPERCASE text transform? – Trung Nguyen Sep 07 '15 at 21:12
-
Thanks for your reply, Trung. – G.D Sep 18 '15 at 07:18
5 Answers
37
Add this to your css
.btn {
text-transform: unset !important;
}
or if you want to change it for specific buttons only, add this to your css :
.no-uppercase {
text-transform: unset !important;
}
then just add no-uppercase
to the desired buttons' classes.
Updated to newer syntax thanks to @ziganotschka

Motassem Kassab
- 1,744
- 4
- 21
- 40
6
There has been a syntax change
- This syntax is deprecated now:
.btn {
text-transform: none !important;
}
- The following syntax is now to be used (as of 02-02-2021):
.btn {
text-transform: unset !important;
}

ziganotschka
- 25,866
- 2
- 16
- 33
-
-
1Has a typo, thanks for pointing out! `none` needs to be replaced by `unset`. – ziganotschka Feb 03 '21 at 19:52
-
1I was just about to give up on the button tag and go with a instead... until I saw your comment. So I can confirm it works btw, the new syntax, so thank you! :-) – Dac0d3r Feb 03 '21 at 20:02
0
Yes can you just need to css in Button tag like below
<Button style={{color:'white',textTransform:'none'}}>Home</Button>

Abdul Kader
- 11
- 1
- 4
0
.btn {
text-transform: initial !important;
}
If you use Vuetify, can follow the following.
.btn span.v-btn__content{
text-transform: initial !important;
}
Looking forward to helping you.

Dev Star
- 26
- 4
-1
you have to override the button class in your css file like below
span.MuiButton-label {
text-transform: none;
font-family: sans-serif !important; //change any font style
}

Tharmini
- 103
- 4