| | #1 |
| HyperActive Warrior Join Date: 2012
Posts: 422
Thanks: 213
Thanked 11 Times in 8 Posts
|
I am working with Wordpress and trying to get the media queries to run. I used a test site here: Responsive Design Testing When using it, the browser seems to indicate that it ALWAYS goes to Code: @media screen (min-width: 1201px) and (max-width: 1600px) { The problem page is here: here Below is what is set up in the CSS file. Why are the media queries not working? Code: @media screen and (max-width: 240px) {
}
@media screen (min-width: 241px) and (max-width: 320px) {
}
@media screen (min-width: 321px) and (max-width: 480px) {
}
@media screen (min-width: 481px) and (max-width: 768px) {
}
@media screen (min-width: 769px) and (max-width: 920px) {
}
@media screen (min-width: 921px) and (max-width: 1024px) {
}
@media only screen (min-width: 1025px) and (max-width: 1200px) {
}
@media screen (min-width: 1201px) and (max-width: 1600px) {
} |
| |
| | #2 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
|
If media queries are empty there is nothing that will resize then. Tested on my site Test responsive design ยป responsivedesigntest.net ... and it worked. |
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
| | #3 |
| HyperActive Warrior Join Date: 2012
Posts: 422
Thanks: 213
Thanked 11 Times in 8 Posts
|
Thanks for the response. Basically, there is information in the media query - I just did not list it out ![]() If I look at the browser debugger, there is no indication that the media query is being "called". What can I do to fix this? |
| |
| | #4 |
| Warrior Member Join Date: 2012 Location: Austin, TX
Posts: 16
Thanks: 2
Thanked 2 Times in 2 Posts
|
My first thought was this: Have you checked that the correct version of your CSS is being used by your browser? Also, verify that there aren't any rules conflicting with your CSS causing it to be ignored. But then I checked your site and I'm not seeing the media queries in the CSS at all. Did you remove them? Are they inline or in a file? |
| | |
| |
| | #5 |
| HyperActive Warrior Join Date: 2012
Posts: 422
Thanks: 213
Thanked 11 Times in 8 Posts
|
Thanks for the response. They are part of a child theme. I did some research and it seems to be OK for Chrome or Internet Explorer -but - I am having some woes with Firefox The site is here: Map Search | Mike Jones Real EstateWhat I have is a fixed-size item (which is the form on the right hand side) and the map (which is on the left hand side). I know percentages are supposed to be the best way when working with responsive media queries - but - I suppose I ran out of patience with the form and just made a fixed number in pixels. So, it is something like: .mapclass { width: 80%; } .formclass { width: 200px; } <div id="allitems"> <div id="leftsidemap" class="mapclass"> </div> <div id="rightsideform" class="formclass"> </div> </div> Can this work? Is there a way for this to work in a responsive situation? Everything seems to be OK with Google browser or IE - but Firefox - again - gives me the blues. I have a second question but I suppose I will post it in another thread ... |
| |
| | #6 |
| ResponsiveDesignTest.Net Registered Member Join Date: 2011 Location: Rostock, Germany
Posts: 829
Thanks: 106
Thanked 225 Times in 194 Posts
| |
|
HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing --- Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu | |
| |
| The Following User Says Thank You to Michael71 For This Useful Post: |
| | #7 |
| HyperActive Warrior Join Date: 2012
Posts: 422
Thanks: 213
Thanked 11 Times in 8 Posts
|
Thanks for the info. Is there a way to keep people from certain browsers from accessing a website? According to the link, there are some browsers out there that do not support media queries and if they do do so, they are "buggy". So, what can I do to keep them out? How can I setup a message saying something like "your browser is too old to run this site"? TIA |
| |
|
| Bookmarks |
| Tags |
| responsive, site, working |
| |