- This topic is empty.
-
AuthorPosts
-
December 26, 2011 at 5:04 pm #35839
mikes02
ParticipantI am using Firefox 9.0.1, I am working on a responsive layout and I have tested in IE 8, Google Chrome 16.0.912.63 m and Safari 5.0.5 all on a Windows 7 PC, for some reason Firefox is not applying the media query when I resize the window, I did a simple test:
@media screen and (max-width:320px)
{
#home-blog{display:none}
}In my header I am including the following:
Test
Any ideas?
December 27, 2011 at 11:57 am #93444mikes02
ParticipantI actually did try that, didn’t change anything unfortunately.
December 29, 2011 at 9:27 am #93609Rutger
MemberCan you try changing
@media screen and (max-width:320px)
{
#home-blog{display:none}
}
into
@media screen and (max-width:320px;)
{
#home-blog{display:none;}
}
March 8, 2012 at 4:12 pm #98515Josh
ParticipantI may be a few months late, but I actually encountered this today, and wanted to share the solution.
It’s actually not a CSS or CSS interpretation problem at all–it’s the way Firefox does (or doesn’t) resize the viewport. Unlike Google Chrome, and most other browsers, Firefox allows it’s toolbars to affect viewport size. The only way to make the viewport resize below the width of your toolbars in Firefox is to disable them. You’ll need to go to View > Toolbars and uncheck each. Then try resizing and watch your media queries take effect.
I hope I explained that right. It’s been a trying day!
March 26, 2012 at 12:13 pm #99946atelier13b
ParticipantThanks !
I have had the same problem in Firefox 11-Ubuntu.
By disabling the navigation bar it’s OK.
Effective trick !
:-)
March 26, 2012 at 7:01 pm #99984dfogge
Participanti wouldnt worry about it too much on desktops. unless, of course, the client has a major issue with it. i think it should be fine since the 320px users are mostly going to be on mobile devices.
it might be a good idea to file this as a bug on mozilla’s dev site though.
June 18, 2012 at 2:50 am #104517fesh27
Memberthanks to JoshBlackwood it solved my problem
June 26, 2012 at 10:22 am #104874dilrajahdan
MemberThanks JoshBlackwood – that worked a treat!
June 26, 2012 at 1:32 pm #104887mattrock
ParticipantThanks from me as well, JoshBlackwood. Your suggestion did the trick for me! Cheers!
November 1, 2012 at 6:17 am #113097fernandarizzo
MemberThanks for sharing the trick JoshBlackwood.
It solved my problem! Cheers!November 13, 2012 at 3:10 pm #114227jengraph
MemberAwesome! How do we get our toolbars to appear again, where is the View menu?
March 5, 2013 at 3:39 pm #127084codeline
MemberI think I’ve just found an easier way to solve this. On FF/Mac just type “about:config” into the address bar, search for “allow” and then look for “services.sync.prefs.sync.dom.disable_window_move_resize”. Set this to “true” and you should be fine :-) No need to hide the toolbars manually.
October 22, 2017 at 3:54 am #261625Marvin El Marziano
ParticipantAnd to add detail to a very very ancient thread:
It seems FF still does this annoying thing, but disabling the toolbars is clearly not a solution (because you can’t disable your visitors’ FF toolbars; and you shouldn’t if you could0).
So, at the moment I’m writing, FF only does this check in pixels from what I can see. In other words, with your default fontsize of 16px, the original problem
@media screen and (max-width:320px)
{
#home-blog{display:none}
}
simply works by changing units to
@media screen and (max-width:20em)
… and no toolbars need disabling.
{
#home-blog{display:none}
} -
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.