python01 Posted June 25, 2012 Share Posted June 25, 2012 I am working on mobile webpage. The screen width is detected and the page properly sized when displayed on mobile devices but when I check it on PC the screen size is so large everything looks out of place. How can I make sure that the page will be displayed properly on PC screen as well even if it means that there will be a lot of gray area around the actual page? I guess one way would be to use php and do something like: if($screensize<700){ //Display mobile version } else{ //Display pc version } where the pc version would use css or tables to properly format the content but I wonder if there is easier/faster/better way to do it? Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/264734-how-to-properly-format-mobile-website-when-displayed-on-pc/ Share on other sites More sharing options...
anevins Posted July 3, 2012 Share Posted July 3, 2012 http://www.w3.org/TR/css3-mediaqueries/ Quote Link to comment https://forums.phpfreaks.com/topic/264734-how-to-properly-format-mobile-website-when-displayed-on-pc/#findComment-1358779 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.