A
A
Alex_Titov2018-06-28 23:53:24
css
Alex_Titov, 2018-06-28 23:53:24

The styles of the block elements change depending on the location of the block. How best to implement?

One BEM block is used several times on a page. There are no problems with the styles of the block itself. But its elements behave differently, depending on the location of the block. For example, the same menu in the header and in the footer. The styles of the menu itself are the same, but the indents between the menu items are different. How do you solve such a problem? Through nesting, through modifiers or something else.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question