Using CSS media queries to create responsive design

It’s crusial now to make websites and web applications fit different screen sizes, especially mobile screens.

To achieve that, one way is to use CSS media queries.

Here’s an example:

@media only screen and (max-width: 600px) {
  .logo{
      width: 50px;
      height: auto;
  }
}

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *