InterviewSolution
| 1. |
What are CSS media queries? |
|
Answer» CSS MEDIA QUERIES are a WAY to define styles in CSS that are responsive according to the user’s window. Using media queries will enable you to style your HTML webpage responsively, i.e the way your website appears MAY vary according to the screen size, resolution, or media type. Media Queries are used to apply different styles or change the behavior or appearance of a website depending on certain queries. This will ensure a seamless viewing experience for all users, irrespective of whether they are using a desktop, mobile, or tablet. Using media queries, we can check the device height and width, the viewport height and width, the orientation, i.e. landscape or portrait, and the resolution of the device. |
|