L
L
ligisayan2017-05-19 14:10:55
css
ligisayan, 2017-05-19 14:10:55

How to separate styles for iPad.pro and netbook with the same screen resolution?

Hello! I have a task to separate css styles for mobile devices including ipads pro with 1024 resolution and netbooks starting from 10k which also have 1024 resolution . How to do it right? Does this entry apply only to mobile devices or will netbooks also be affected?

@media only screen and (max-device-width : 1024px) {
/* Styles */
}

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Site Developer, 2017-05-19
@ligisayan

How to separate styles for iPad.pro and netbook with the same screen resolution?

Only through the definition of the user agent and individual css files.
@mediacannot identify devices by name. Only by appointment - printer, TV, voice synthesizer, etc.

D
devstudent, 2017-05-19
@devstudent

and use the screen orientation in queries? netbooks always use landscape ...

I
Ivan, 2017-05-19
@Za0r

Maybe I misunderstood something, maybe I'm stupid.
@media(max-width : 1025px){
//tablets
}
@media(min-width: 1024px){
//netbooks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question