not: The not keyword reverts the meaning of an entire media query.

This page lists a ton of different devices and media queries that would specifically target that device.

A media query consists of an optional media type (all, handheld, print, TV and so on) and any number of optional expressions that limit when the query will trigger, such as width, pixel-density or orientation. ... Media queries can help with that. not x and y = not (x and y) ≠ (not x) and y. This technique is used for accurate responsive websites for smaller screen devices like mobiles, notepads etc. Media query is a CSS technique introduced in CSS3. To ensure that only one media query is in effect at time, make the numbers (or whatever) such that that is possible. With it, you specify a media query and a block of CSS to apply to the document if and only if the media query matches the device on which the content is being used. @media rule is used to include certain block of CSS properties if and only if certain given condition is satisfied. Also note that not reverses the logic for the entire media query as a whole, not individual parts of it. In practice, they are mostly used to change the website's appearance for different screen resolutions. If I set in my CSS - and (max-width: 768px) and make the screen width 768 pixels, the color of the p tag is yellow, which means 768 pixels … only: The only keyword prevents older browsers that do not support media queries with media features from applying the specified styles.It has no effect on modern browsers. Introduction to Media Query CSS. @media rule is used to include certain block of CSS properties if and only if certain given condition is satisfied. I am using media query for a responsive web, commonly we are using media queries like this: @media (min-width: 1024px) and (max-width: 1280px){/* style goes here */} It’s fine…. ie: var media = 'max-width:767'; from the css @media(max-width:767px) { .story {color: black} } – user3705143 Jan 24 '17 at 4:28 Note: This feature does not correspond to device orientation. Similar to how you can get the value attributes of a class element using jquery, I am trying to get the value of what is inside the parenthesis of the media query.

Media Query is a popular technique that enables to deliver a style sheet to different devices which have different screen sizes and resolutions respectively. They are used to customize the appearance of a website on multiple devices. We can add a breakpoint where certain parts of the design will behave differently on each side of …

The @media CSS at-rule can be used to apply part of a style sheet based on the result of one or more media queries. Introduction to Media Query CSS.

This media query technique is introduced in Cascading Style Sheet 3(CSS3).

For media queries you can set this as .

When I make the screen width - 766 pixels, the color is yellow (media query style applied), but in CSS I have - .. and (max-width: 767px). That's probably not generally a great practice, but it is helpful to know what the dimensions for all these devices are in a CSS context.