HTML // please help me #21475
-
I want to make a button “Try it for free”, on YouTube one person suggests using a modification of “nav__link–btn” (two -) in the “nav__link” class in html and “&–btn {}” (two -) in css, I use it, but the demo does not work out what I wanted … (5 and 4 in browser)
Why doesn’t the --btn modifier work for me? What should I do in this case?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi there. 👋 Indenting your CSS that way isn’t supported by regular CSS, for that, you’d need a pre-processor like SASS which has support for those features.
This should work just fine. 🙂 |
Beta Was this translation helpful? Give feedback.
-
thank you very much!) Thanks to your advice, it worked for me) |
Beta Was this translation helpful? Give feedback.
Hi there. 👋
Indenting your CSS that way isn’t supported by regular CSS, for that, you’d need a pre-processor like SASS which has support for those features.
This should work just fine. 🙂