How detect if device is tablet or smartphone

hi how can i detect if device is tablet or smartphone? there is some plugin for this?
any suggestion on mobile-detect.js? someone have tryed?

I just do it using media screen. Just check the width of the screen and thats all you need.

@media only screen and (min-width:768px){}

1 Like

you mean like that?

@media only screen and (min-width: 600px) {
/* For tablets: */

and put everything inside…and the part for smartphone outside…right??

Yes. Exactly like that.

1 Like

ok thank you boss…i’ll try