Jump to content

To include styling for smart phones?


Recommended Posts

The site I'm to build needs to scale well on smart phones as well as computer screens. I need to detect that the incoming request is from a phone and then somehow deliver the stylesheet for the smaller screen. I'm using XHTML, CSS and PHP to build the site. Mark

Link to comment
Share on other sites

Here's one solution:-



Opera has a feature in "View, Fit to Width" which simulates display on a small screen device like a mobile phone when you reduce the browser window width.


What happens is that drop down menus or flyout menus, tables and the like are converted to a vertical list so that a user only has to scroll up and down rather than sideways as well, although he may hve to use the zoom (Opera provides it at the bottom of the simulation window) to get the best display. Tables are shown with each cell in a row below the previous cell instead of across the row.

Link to comment
Share on other sites

LSW, you make a good point and I'll most likely add a link to the full site.


Wickman, Thanks for the link, I have some reading to do and I'll get back with you.

Edited by dms
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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