android - Device detecting Conditional css -


i trying add conditional css device detecting, because of conflicts in desktop , android tablet landscape res

- if android_device?         :css            @media screen , (max-width : 1280px) , (-webkit-device-pixel-ratio:2)  {              /*css*/           } 

can 1 me out have use check?

i got reference url: url

there no way of detecting operating system or web browser using strictly css.

i'd recommend using javascript detect web browser / operating system, , attach classes <body> of page accordingly.

you can write css specific each use case, honored if particular criteria encountered.

here example on jsfiddle.


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -