Jump to content

How to properly format mobile website when displayed on PC?


python01

Recommended Posts

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.