I want target firefox of a mobile device. I´ve tried:
@media only screen and (max-width: 470px) {
@-moz-document url-prefix() {
(here some CSS)
}
}
But it doesn´t work... Any other suggestions?
I want target firefox of a mobile device. I´ve tried:
@media only screen and (max-width: 470px) {
@-moz-document url-prefix() {
(here some CSS)
}
}
But it doesn´t work... Any other suggestions?
This is often a job for a library such as "Modernizr", although it's not really an exact science.
This will detect the features of a browser, and will render classes on the body tag accordingly - You can then use these to implement features.
Alternativtly, if you really need to target the browser as firefox:
if(navigator.userAgent.toLowerCase().indexOf('firefox') > -1){
// Do Firefox-related activities
// Add a class to appropriate entity, and style using css / media query
}