S
S
Sergey Goryachev2016-10-24 03:24:24
BEM
Sergey Goryachev, 2016-10-24 03:24:24

How to break the header into blocks?

I have this hat.
f4b027a7e9c74ed8967a93b32aaab408.png
And the question is this.
The first block is header. This is clear.
What about the logo, phone number, social links and menu?
Are these header elements or separate blocks?
If blocks, then what is the correct name for them, provided that the logo and social links are duplicated in other places.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dom1n1k, 2016-10-24
@webirus

Personally, I would make 4 more blocks inside the .header block: logo, phone, social media and menu.
Something like this:

.header
    .header__logo
        .logo
    .header__phone
        .phone
    .header__social
        .social
            .social__link .social__link--instagram
            .social__link .social__link--vkontakte
            .social__link .social__link--facebook
    .header__menu
        .menu
            .menu__item .menu__item--active
            .menu__item
            .menu__item

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question