Viktor Kynchev
Viktor Kynchev

Reputation: 353

display: none doesn't work

I have web app for making music from javascript. But I have problem with display: none of my .musicBox class.

Here are the index.html code with all important styles & scripts.

My index.html file on CodePen

  @media screen and (max-width: 520px) {
      .rotateDevice {
          display: block; 
      }
      .toneBox {
          display: none;
      }
  }

When I resize the window to under 520px width it will 'display: none' my color Boxes. But why it didn't?

Upvotes: 1

Views: 302

Answers (3)

Muhammad HamZa Khan
Muhammad HamZa Khan

Reputation: 77

Try out this may be it would help you:

Visibility: none;

Upvotes: 0

Felix A J
Felix A J

Reputation: 6470

There is something missing above this media query.

Remove the .a above it.

Upvotes: 1

Kyle L.
Kyle L.

Reputation: 634

try

.toneBox {
    visibility: hidden;
}

Upvotes: 0

Related Questions