There are many ways you can do this. But before that you need to consider some things:
- You want to have 2 separate domains for desktops and mobile devices (for example, www.yahoo.com and m.yahoo.com).
- What will your design look like in every perspective?
The above important decisions, as new devices (mobile / tablets, etc.) that appear on the market constantly appear. Therefore, you need to develop something that can be easily expanded in the future.
Speaking about the fact that there is one very good approach to the development of mobile sites. It’s called “Responsive Web Design” (or fluid design). Here you don’t take any measurements (width / height / padding / margin, etc.) and specify everything in% (in your CSS) This ensures that the layout will be configured in accordance with the screen on which it is viewed, and therefore is not tied to any particular device.
In addition, you also need to know about the viewport for mobile devices.
In addition, for Javascript, you can consider libraries such as jQTouch, jQuery Mobile, Sencha Touch (for more complex sites) and even basic ones such as flowplayer plugins.
Please let me know if you need more information.
source share