'Materialize CSS, choosing font color or family?
I wanna put some text in orange. It is an h4, or just need for changing its colour.
http://materializecss.com/typography.html
there'are diferent Roboto font family, but I dont know how to use it without using font-family...
Solution 1:[1]
You can do this:
<h4 class='text-orange text-darken-3'>TITLE</h4>
Solution 2:[2]
just add this to your custom css.
.dropdown-content, .select-dropdown{
font-family: "BT Mono bold" !important;
}
Solution 3:[3]
There is nothing like css classes available in matz library as you have mentioned.
should be like this .blue-text text-darken-2
for more refer in color usage section of matz.
Solution 4:[4]
I you want to change the color, then:
<h3 class="orange">Hello world!</h4>
If you want to color the text as well, you can do
<h4 class="orange white-text">Hello world!</h4>
Solution 5:[5]
You must use the font-family in css file
h4 {
font-family:sans-serif;
color:orange;
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | leoLR |
| Solution 2 | Paul Roub |
| Solution 3 | Tamaghna Banerjee |
| Solution 4 | Bob Dalgleish |
| Solution 5 | Nathalie GuimarĂ£es |
