Top "Media-queries" questions

Media queries enable the conditional application of CSS styles based on media types, such as screen and print, and the conditions of media features, such as viewport and device height and width.

Responsive design - Media Query not working on iPhone?

I am trying to create a mobile friendly version of my website, to make my website responsive to a smaller …

css mobile responsive-design media-queries
Chrome Device Mode Emulation Media Queries Not Working

For some reason device emulation mode is not reading my media queries. It works on other sites including my own …

css google-chrome media-queries developer-tools
How to target iPhone 3GS AND iPhone 4 in one media query?

I am trying to implement alternate layouts for both the iPad/iPhone and older iPhones as well. I have established …

iphone css mobile-safari media-queries
Nesting @media rules in CSS

Support seems to be different across browsers.. Check the link Firefox: Black with white text. Opera, Chrome, IE9: Blue with …

css media-queries
Extending selectors from within media queries with Sass

I have an item class and a compact "modifier" class: .item { ... } .item.compact { /* styles to make .item smaller */ } This is …

css sass media-queries
CSS media queries and JavaScript window width do not match

For a responsive template, I have a media query in my CSS: @media screen and (max-width: 960px) { body{ /* something */ background:…

javascript jquery media-queries
Is it possible to use display:block on td in HTML email, to achieve responsive table design?

This fantastic article describes how to create responsive tables which scale fabulously to mobile browsers. Now I'm trying to apply …

html css html-table media-queries html-email
How to target Galaxy Nexus and Nexus 7 with media queries?

I have two devices that I'm testing site design with. Samsung Galaxy Nexus and Asus Nexus 7 tablet. I'm having a …

css responsive-design mobile-website media-queries
How to simulate pixel ratio to test media queries with Google Chrome or Firefox on Windows?

While it is easy to test different screen resolutions in Google Chrome i wonder how developers could test different device …

css testing media-queries
Combining CSS media queries

I want to display the same set of CSS styles to people printing the page (media=print) and people browsing …

css media-queries