I am implementing responsive web design for my site. For that I am using @media queries for displaying different views on different devices. For testing purpose I am using web developer toolbar for firefox and responsive site view add-on for google chrome.
However if I am using :
@media only screen and (max-device-width: 480px)
{
//CSS
}
Then its working on actual device but not in browser
and
If I am using
@media only screen and (max-width: 480px)
{
//CSS
}
Then its only working on browser and not in device.
Where I am going wrong? Need Help
doesn't work in Firefox OS simulator.
In your case you can use like this
and this is a slandered media queries code for all devices by Chris Coyier