Answer the question
In order to leave comments, you need to log in
Responsive design via PHP?
Is it possible to make a mobile version of the site through PHP, i.e. we read the user's screen size and use PHP to substitute the required css file in the page header, or do we need to do it through media queries?
Answer the question
In order to leave comments, you need to log in
PHP can't determine the user's screen size, it's a server-side language.
Such actions are resolved, as you yourself wrote, through media queries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question