473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Media Queries not being used by browsers

97 64KB
I don't know why my media queries aren't working. I use them the same way with every app, only this time the media query for desktop devices isn't working.

The browsers (getting the same problem in Chrome, IE & FF) get the styles for mobile and tablet devices, but the third media query on my file isn't being applied. I checked the page source and the file is attached and the three media queries are in the stylesheet, but the third media query isn't being applied.

I'm compiling from Sass and I get a green light when I save, meaning that the files are compiling correctly. I have a little JS function that removes some text for certain device widths, but I tried removing that and nothing changed.

Here's the code I'm using as the actual media queries:

Expand|Select|Wrap|Line Numbers
  1. @media all and (max-width: 321px) {
  2. // Styles here
  3. }
  4.  
  5. @media all and (min-width: 321px) and (max-width: 780px){
  6. // Styles here
  7. }
  8.  
  9. @media all and (min-width: 780px){
  10. // Styles here
  11. }
  12.  
And this is the viewport metatag:

Expand|Select|Wrap|Line Numbers
  1. <meta name='viewport', content='width=device-width, initial-scale=1'>
  2.  
  3.  
Oct 19 '15 #1
1 7012
tdrsam
97 64KB
This is sooooooo embarrassing, but I have no other option than to fess up; I'd changed all my classes to id's, as it seemed more semantically correct, but I forgot to change my dots to hashtags in my stylesheet.

I wish I could delete this question as this is just ...
Oct 20 '15 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
14
by: Terry A. Haimann | last post by:
I have been working on creating a dynamic web page and have made slow but steady progress. What I have now has an opening page with two drop down boxes. Based on a choice from the first box, the...
111
by: Retlak | last post by:
The recommended (on dozens of websites) and effective (works in Netscape, MSIE, Mozilla, probably others) way to detect if a browser has Javascript turned off is to put this in the <head>: ...
5
by: Bob Alston | last post by:
I have a where used utility that shows where any table or query is used - in a query, form or table. I would like some kind of diagram that shows these relations. I have some reports that...
4
by: Mikael Janers | last post by:
Hello! I have a question that is not realy only C# but I didn't find any better group... What is the most common/best way to handle sql queries in C# 1) Should I use stored procedures ? I...
13
by: Alan Silver | last post by:
Hello, I finally got around to buying a 2nd hand Mac, so I can test pages in the Mac-only browsers. It has IE5.2, although that hangs up every time I try to start it up, so I guess I won't be...
3
by: trint | last post by:
My web site works just fine with Internet Explorer 6 and 7. But GridViews, FormViews and other parts of my site are either overlapping or not where they are supposed to be or missing alltogether...
3
by: Mukesh_Singh_Nick | last post by:
I've come accross queries like this one previously but never got the time to carefully study them form some book. SELECT 1 WHERE 1 = 1 1) What do queries like these mean? From common sense,...
3
by: dharmar | last post by:
Hi All, I've a C# application which reads data from AS400. In this application I've written nearly some 20 methods to read data from different tables do some calculations and fill up customized...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.