Home My Media Query does not apply to the class
Reply: 0

My Media Query does not apply to the class

user528
1#
user528 Published in April 20, 2018, 6:25 pm

I have a media query which looks like this:

@media screen and (max-width: 1200px) {
  .changePicture {
    width: 15%;
    float: left;
    margin-top: 5%;
    margin-left: 5%;
    margin-right: 0;
  }
}

.changePicture {
  width: 15%;
  margin-top: 5%;
  margin-right: 20%;
  float: right;
}

This is the class which is not in the media query. Now I have the problem that the query wont apply when the screensize is smaller than 1200px.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.313969 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO