Answer the question
In order to leave comments, you need to log in
Some questions about BEM?
Hello. I'm studying bam and I have some questions
margin: 0 auto;
?Answer the question
In order to leave comments, you need to log in
frontender.info/MindBEMding
https://nicothin.github.io/idiomatic-pre-CSS/
Not a BEM expert, but
1. Blocks also have a parent. Therefore, the block is also an "element" of some block. It will be: "some-block header__block" where you hang all the design on "some-block", and positioning on "header__block"
2. No. It's written in the docs. The modifier does not exist separately. You can create a "mixin" ... like a universal class, with a set of rules.
3. The question is not understood
1. You can, for example, in the parent block, mix an element to the centered block
{
block: 'parent',
content: {
block: 'child',
mix: { block: 'parent', elem: 'childy' }
}
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question