A
A
Alexey Alyoshin2018-12-10 01:24:14
css
Alexey Alyoshin, 2018-12-10 01:24:14

Media query not working in sass?

Please tell me what is the problem?? I'm sure it's nested, but I don't understand where exactly... when the resolution is less than 375px, the menu (header-menu__list) should be hidden, and the button (header-menu__toggle) should appear, but something doesn't work

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
ljutaev, 2018-12-10
@ljutaev

Try writing like this:

.header-menu
  display: flex
  padding-bottom: 2%
  @media screen and (max-width: 375px)
    width: 100%
    display: flex
    justify-content: space-around

A
Alexey Alyoshin, 2018-12-11
@aleksvalushko

thanks for responding. I decided everything ... I was stupid and forgot to connect the meta head))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question