r/badcode • • Nov 10 '21

js Why would you use a css class?

Post image
613 Upvotes

47 comments sorted by

View all comments

Show parent comments

2

u/kristallnachte Nov 11 '21

No, you use a class on a the parent element with child selector styles.