Font-size on CSS | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

Font-size on CSS

Does SOLOLEARN support ā€œfont-sizeā€ on css? Iā€™m trying to work on a font size with its text editor, but it seems that it doesnā€™t work.

4th Oct 2019, 6:00 PM
Marcos Rodrigo Sousa
Marcos Rodrigo Sousa - avatar
3 Respostas
+ 2
try just ā€œsize: ;ā€
5th Oct 2019, 7:47 AM
Tonik Horkel ą² _ą² 
Tonik Horkel ą² _ą²  - avatar
+ 1
Try font-size:2em; To see if the font became larger, if so, reduce size to 1em or 1.2em or whatever. The element you're styling with font-size in the css must have text so you can see it. If you styled this <h1></h1> in css and added font-size, you'd see nothing because the h1 heading has no text. Also be careful. If you have numerous elements with font-size styling, an element higher up could be dominating the element you want to style, essentially , your element has inherited css from the parent element. In that case, try and override the inheritance in your css with font-size:2em !important;
11th Oct 2019, 12:01 AM
Xyenia šŸ¦‰
Xyenia šŸ¦‰ - avatar
0
I tried that as well, but it doesnā€™t work as well. šŸ˜­
5th Oct 2019, 9:12 AM
Marcos Rodrigo Sousa
Marcos Rodrigo Sousa - avatar