So my colleague’s HTC (running Android and a version of mobile Safari) will do the “mobile” styles when upright/portrait and will do the “desktop” styles when in landscape (since then it believes it’s wider than 600px). Can some of you guys look at it and help me?.. ), but it’s definitely not a tool to learn how to code on. screen with min-width, projection (for Opera really) min-width, get this stylesheet. My browser is still not doing anything for max-width:450px. Either way I’d be cutting those links down to one or two works instead of entire sentences. It’s a tool to catch syntax errors, not to tell you if your code is actually good, but it’s a necessary tool in your toolbox. thanks _____ sorry, it is a long CSS file @charset "UTF-8"; /* Simple fluid media My media query for screen size of a minimum of 480 px is not working. Providing “exclusive” media queries by making them separated by 1px will not work as intended when user zooms in. For me it’s more a matter of not stating EVERYTHING twice – if you were to separate out the things that are actually different, then fine. While I get pissed off by the eighth slide going “where the devil is the content?” (actually, I use a bit stronger language than that), Too many mobiles are balls with media queries. From what I see your CSS looks good. Posting to the forum is only allowed for members with active accounts. I have referenced my responsive.css files properly (I believe) and am certain I'm missing something in the CSS portion. They’re not fun to use, esp with touch devices. I'll keep tinkering around with it. If you want to use it as an editor-who-does-lots-of-other-neat-things, that’s fine for later (after you know what to turn off! I’d say media-query loading is a legitimate reason, if I’m building “mobile-first” (basic first) but you want IE to match the “wide-enough” queries. I htink the video is using chrome, but my chrome can't turn. Start with a single stylesheet that doesn’t set widths on stuff and is the most basic form of the page. You can also use media queries instead of, or in addition to, fluid hybrid design. How to Make a Website Always test in a browser (like you did your iPhone). How are people supposed to use that? Make sure you’re holding it in portrait, because I did not set orientation with my media queries. All I did was copy and past your code into it, and added some color changing css for the h2 element in ... Jake Lundberg . IE is the big problem with this setup though: more likely that IE’s viewing the site are desktops, so I just give them desktop CSS and don’t worry about mobile IE. brand new exactly how dreamweaver sets it up using three different style sheets for the differemt sizes and made a small color change on each and uploaded it and it still only showed the desktop version. Admittedly I was convinced by Bryan Rieger’s slides. Also, I’ve never actually checked that page with iPhone, only Opera on Android, Symbian (webkit) browser on Nokia and IE6 on Windows Mobile. Test in your browser. Why was that. As to the media queries they APPEAR to be working here in Opera and chrome desktop-wise, so not sure why they’d be ignored on the iPhone. Not sure why they want to keep the links like that but it drives me nuts. I'm working on a schoolproject and I can't get the media queries to work. Crusty: yeah I’m seeing the multi-line dropdown menu in my browsers as well. Code: Set device-width… not totally exact cross-machine but it’s good to tell the device to use its idea of “width” to match what it thinks it has… just that, some devices don’t use “CSS pixels” for this measurement. Nice idea, but haven’t tried it yet). 'http://fonts.googleapis.com/css?family=Oswald|Open+Sans:400italic,700italic,400,700,800', /*********************************************, **********************************************/. What matters is the browser. If I want something special for TV, then by adding TV on top of basicstyles.css, TV isn’t loading a bunch of desktop/projection/whatever styles, background images, etc. I’m seeing four lines here and the second line is being overlapped by the third (opera). As to the media queries they APPEAR to be working here in Opera and chrome desktop-wise, so not sure why they’d be ignored on the iPhone. Ok here’s the thing: you sound like you’re doing a project, possibly for money/work. The criterion is specified in the Criteria row of the field in the design grid.. A criterion that you specify for a Hyperlink field is, by default, applied … I have NEVER had these kinds of issues applying custom media queries. Don’t use a media query yet. Media queries, however, are based on the viewport, rather than an element’s container. CSS media queries "display: none" not working . zeeb4: you really, really, really don’t want ginormous dropdown menus, especially overlapping ones, on screens the size of a mouse turd. A media expression, which is a rule, or test that must be passed for the contained CSS to be applied. This is my first project that I am trying to use mainly CSS, and I admit I am no wizard. How Min-Width and Max-Width Media Queries Work. Thank you both for your swift and helpful replies! Not only useless, but they […] What do you recommend? Email designers have long sought to build campaigns for every device. You get so much benefit learning good coding. and ids (#) are properly labled. We have seen a resurgence in queries and interest in how to use them, which we’ll cover here. That will certainly help the page fit the screen, but is not the actual problem the OP is having—which is that the media queries are not working on mobile devices. From there you have multiple unneccessary DIV (.header, .menu, .footer_left, .siteSearch, div inside .sitesearch that should be a FIELDSET, etc, etc…), multiple pointless classes (if every element inside a parent is getting the same class, class the parent instead! Here’s where I’m going to keep my promise that you don’t need to master HTML and CSS to be able to use media queries. Is it just me or are they really not working? That’s why I suggest building for screen first, then using the media queries to “edit it down” instead of building each individually…. I just hate to see it when it’s four stylesheets setting the same values over and over again…. and start at the beginning and learn how to code. Responsive Web Design and Testing Even the following media query that Nick is using doesn't do anything visible in my browser. Wow, now that I posted the code I see the error! No, though they do change stuff (they’ve been playing with the device-width meta tag for example, and no, it doesn’t correctly use the width you’d expect). I think it might be. I know that drop down menus stacked on each other are horrible, and look horrible. specifying certain conditions and applying a specific stylesheet to them. The Web is inherently fluid, so it’s our job … Since really that’s all a media query for width should be doing – it’s a mcSwitchy trigger… Which is where I’d use IE conditionals or a behavior file – around a mcSwitchy script to change an outer class based on the width for devices where media queries don’t run. Media Queries can work quite well in environments -such as some corporate intranets- where the audience is either restricted to only the latest standards and browsers or is uniform (or both). I've already checked for the size of Menu