Using BEM in CSS

Hi everyone, can you help me please?
I want to use BEM in my CSS How can I use CSS without nesting?

Thanks!


Here is my site Read-Only: LINK
([how to share your site Read-Only link][2])

[2]

: https://university.webflow.com/article/sharing-your-sites-read-only-link![pr|690x440]

Hi, I just stumbled over your question. You’re using BEM wrong. When declaring an element (b-head__logo) you’re NOT supposed to include the parent block class; that’s only for modifiers. IE “.b-head .b-head–modified”.

1 Like

This topic was automatically closed 125 days after the last reply. New replies are no longer allowed.