css for mobile only

2

Well I'm used to checking the css like this:

@media only screen and (max-width: 920px) {}

The problem is that it has phones with very high resolution, is there any other way I can check without using Px?

    
asked by anonymous 22.12.2016 / 14:11

1 answer

1

You can try to use @media (pointer: coarse), with it you can detect if the user is using a mouse or navigates through a touch screen, the interesting thing is that even in touch screen notebooks he accuses the mouse as main and enter the query

If you're curious, follow the practical example I found on the net. link

    
22.05.2017 / 16:44