• I’m using media queries. Only the query with orientation portrait is working. The media query with max-width in pixels is not working.
    Here is the code that is not working:

    @media only screen and (max-width: 768px) {
    .care {
    width: 100%;
    max-width: 200px;
    max-height: 200px;
    background-image: url('http://localhost:8080/PLO/wp-content/uploads/2015/01/students.png');
    background-repeat: no-repeat;
    background-size: 100%;
    margin: auto;
    }

    What am I doing wrong?

  • The topic ‘Images not resizing when browser windows changes size’ is closed to new replies.