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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.