E
E
ericnolimit2018-01-27 22:46:41
PHP
ericnolimit, 2018-01-27 22:46:41

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

2 answer(s)
D
Dmitry Gadzhiev, 2018-01-27
@gds1

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.

A
Alex-HAV, 2018-01-27
@Alex-HAV

Through the media. besides, as I understand it, even if through php it would be possible, but when resizing the window, it would not adapt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question