0

CSS Confusion

Hi, I have a question. I am a complete noob in programming, please bear with me. While I play around with the CSS codes, I enter these codes: body { .pgrap { font-style: "Times New Roman", serif; font-size: x-large; font-weight: bolder; color: red; } } .pgrap { font-style: "Times New Roman", serif; font-size: x-large; font-weight: bolder; color: red; } Somehow, those with the body {} tags don't reflect any changes on the CSS while those that are without body {} tags do. I don't get it why the body {} tags won't function.

13th May 2020, 6:55 AM
Martina Arnado
Martina Arnado - avatar
2 Answers
+ 7
Hello. That first css code you wrote is not actually CSS, it's SASS/SCSS. SASS is used to write CSS codes faster and in better way like a programming language where you can have variables, loops etc. But you can't directly run SASS on a website so you have to compile that code into normal CSS code which will look like the second code. if you want to run it on Sololearn playground you have to use reference from this code https://code.sololearn.com/WKNQYtDaiK6q/?ref=app
13th May 2020, 7:09 AM
Raj Chhatrala
Raj Chhatrala - avatar
0
Thanks, Rick. i'll keep that in mind until I come to that part.
13th May 2020, 12:28 PM
Martina Arnado
Martina Arnado - avatar