Hitesh Chauhan
Hitesh Chauhan

Reputation: 1082

How to hide a div between two sizes in CSS

I stuck to hide div between two screen size. like I want to hide div between screen sizes 550px - 910px with the following media query.

@media only screen and (min-width: 550px) - (max-width: 900px)
{

  .bsp_big-image{
      display: none !important;
  }

}

Upvotes: 1

Views: 130

Answers (1)

Basil Abubaker
Basil Abubaker

Reputation: 1651

use the following syntax to do it:

@media (min-width: 550px) and (max-width: 900px)
{

  .bsp_big-image{
      display: none !important;
  }

}

Upvotes: 1

Related Questions