+ 2

Font Weight not working (Arial, React.js)

Font weight isn't working. It's worked before and it's in the default Sololearn browser font Arial. I'm using React js. https://code.sololearn.com/WuInRBfc3jAF/?ref=app

26th Jun 2020, 3:04 PM
Clueless Coder
Clueless Coder - avatar
3 Antworten
+ 1
The problem could be in the type of tag you are using <h1>, which would make it difficult to see the weight change of the font. Try to change the h1 tag for the span tag you will see the font change
26th Jun 2020, 3:47 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
+ 1
Emanuel Maliaño I did that. I just made the font huge, didn't change the weight. Do you have any idea why fontWeight: won't work? It won't even do it in the CSS
26th Jun 2020, 3:34 PM
Clueless Coder
Clueless Coder - avatar
0
# testing const lightfont = { "fontSize": 40 + "pt", "color": "red" } It is the same sintax for to use fontWeight
26th Jun 2020, 3:29 PM
Emanuel Maliaño
Emanuel Maliaño - avatar