+ 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.
3 ответов
+ 2
try just “size: ;”
+ 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;
0
I tried that as well, but it doesn’t work as well. 😭