0

How can i style myvar Line 43. I want to style color red in instance class Color. Thanks you sir.

Style myvar color in instance class Color. https://code.sololearn.com/WsbFq8nOc4HH/?ref=app

5th Jul 2021, 6:24 AM
Malick Diagne
Malick Diagne - avatar
1 Answer
+ 1
Style is generally appied to an element not on selective text. If you want to style the product name put that textnode in an element like span and then append span in body and now you can style productname by styling span tag.
5th Jul 2021, 6:42 AM
Divya Mohan
Divya Mohan - avatar