on-internet
← Community

How to set width to Mobile screen size using HTML / CSS

Stack Overflow ·

I am developing a website Register page. if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== false) With the above trap, I directed the page to a separate mobile page, where the problems started with setting the width. in the mobile page, I tried setting the width in CSS like width="auto", width=100% and even a width element, but still the Register page occupies just 30%-40% of the screen (used align: left) and not visible. I am using PHP and MySQL. Please help me how to come out of this problem

Comments

Sign in or sign up to comment and upvote.

No comments yet.