G
G
Genri_Rus2019-10-29 20:19:36
HTML
Genri_Rus, 2019-10-29 20:19:36

What is the correct BEM name for a slider?

What would be better in this case?

<div class="info">
       <div class="wrapper-info">
             <div class="container">
                 <div class="info-slider">
                    <div class="info-slider-item">
                         <div class="info-slider__photo"><img class="info-slider__photo-preview" src="путь к картинке" alt="описание"></div>
                         <div class="info-slider__name">Имя</div>
                    </div>
              </div>
        </div>
    </div>
</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustam Bainazarov, 2019-10-29
@Genri_Rus

I would like this, for example:

.info-slider
.info-slider__item
.info-slider__item-photo
.info-slider__item-photo-preview или .info-slider__item-preview
.info-slider__item-name

Can be shorter:
.info-slider
.info-slider__item
.info-slider__photo
.info-slider__preview
.info-slider__name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question