Media Queries firing at wrong width

前端 未结 8 942
抹茶落季
抹茶落季 2020-12-07 18:08

I am building a responsive page and the media queries are firing at the wrong width size. I am using Chrome.

@media screen and (max-width: 1200px) {
 .logo-p         


        
8条回答
  •  独厮守ぢ
    2020-12-07 18:51

    I ended up on this thread after an hour of frustration, in the end I realised I'd accidentally used min-height instead of min-width:

    @media screen and (min-height: $sm) { }
    

    instead of...

    @media screen and (min-width: $sm) { }
    

    Just a reminder to quickly check it if you were having the same issue as me face palm, it's late.

提交回复
热议问题