+ 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
3 Answers
+ 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
+ 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
0
# testing
const lightfont = {
"fontSize": 40 + "pt",
"color": "red"
}
It is the same sintax for to use fontWeight